>>> mongodb r4.0.12 Extracting gzip -d -c /home/naourr/work/instance-2/dl/mongodb/mongodb-r4.0.12.tar.gz | /home/naourr/work/instance-2/output-1/host/bin/tar --strip-components=1 -C /home/naourr/work/instance-2/output-1/build/mongodb-r4.0.12 -xf - >>> mongodb r4.0.12 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 410 (offset -372 lines). Hunk #2 succeeded at 427 (offset -372 lines). Hunk #3 succeeded at 472 (offset -372 lines). >>> mongodb r4.0.12 Configuring >>> mongodb r4.0.12 Building (cd /home/naourr/work/instance-2/output-1/build/mongodb-r4.0.12; /home/naourr/work/instance-2/output-1/host/bin/python /home/naourr/work/instance-2/output-1/host/bin/scons CC="/home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc" CXX="/home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++" -j"4" --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.0.12- --wiredtiger=off --js-engine=none --allocator=system --enable-free-mon=on --ssl --ssl-provider=openssl mongod mongos) scons: Reading SConscript files ... Mkdir("build/scons") scons version: 3.1.2 python version: 2 7 17 'final' 0 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++" is GCC... yes Checking if C compiler "/home/naourr/work/instance-2/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 5.3.0 or newer...yes Checking if C++ compiler is GCC 5.3.0 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... 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++14... yes Checking if C compiler supports -std=c11... yes WARNING: System versions of C++ libraries must be compiled with C++14 support Checking for C++14... 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 Using SSL Provider: openssl Checking for curl_global_init(0) in C library curl... yes 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 *** Run 'pip2 install --user regex' to speed up error code checking scons: done reading SConscript files. scons: Building targets ... Creating 'build/opt/mongo/config.h' /home/naourr/work/instance-2/output-1/host/bin/python 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 /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/python src/mongo/db/auth/generate_action_types.py src/mongo/db/auth/action_types.txt build/opt/mongo/db/auth/action_type.h build/opt/mongo/db/auth/action_type.cpp /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_init.cpp /home/naourr/work/instance-2/output-1/host/bin/python src/mongo/util/generate_icu_init_cpp.py -o build/opt/mongo/util/icu_init.cpp -i src/third_party/icu4c-57.1/source/mongo_sources/icudt57l.dat /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_move_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_move_chunk_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationruleparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationruleparser.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/icu_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -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 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc build/opt/mongo/util/icu_init.cpp /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/introspect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/introspect.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libstorage_engine_common.a build/opt/mongo/db/storage/storage_engine_init.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_engine_common.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_planner_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_planner_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_planner_common.h:34, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_planner_common.h:34, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_planner_common.h:35, from src/mongo/db/query/query_planner_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_planner_common.h:35, from src/mongo/db/query/query_planner_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationsets.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationsets.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/text.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_planner_common.h:35, from src/mongo/db/query/query_planner_common.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/count.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/text.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/text.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/deferred_writer.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/cpuload.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/cpuload.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/concurrency/deferred_writer.cpp: In member function 'mongo::StatusWith > mongo::DeferredWriter::_getCollection(mongo::OperationContext*)': src/mongo/db/concurrency/deferred_writer.cpp:94:21: warning: redundant move in return statement [-Wredundant-move] 94 | return std::move(agc); | ~~~~~~~~~^~~~~ src/mongo/db/concurrency/deferred_writer.cpp:94:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/server_status_metric.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/server_status_metric.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/message_compressor_registry.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/commit_notifier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/commit_notifier.cpp /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_internal_expr_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_internal_expr_eq.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_zone_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_zone_operations.cpp 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_changelog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_changelog.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_internal_expr_eq.h:33, from src/mongo/db/matcher/expression_internal_expr_eq.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_internal_expr_eq.h:33, from src/mongo/db/matcher/expression_internal_expr_eq.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_internal_expr_eq.h:33, from src/mongo/db/matcher/expression_internal_expr_eq.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_internal_expr_eq.cpp: In member function 'virtual std::unique_ptr mongo::InternalExprEqMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_internal_expr_eq.cpp:67:21: warning: redundant move in return statement [-Wredundant-move] 67 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/expression_internal_expr_eq.cpp:67:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_text_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text_base.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbmessage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/dbmessage.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtfmtsym.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dtfmtsym.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_base.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_base.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/python 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 In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_base.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/kill_sessions_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/kill_sessions_local.cpp ar rcsTD build/opt/mongo/db/libdbmessage.a build/opt/mongo/db/dbmessage.o Skipping ranlib for thin archive build/opt/mongo/db/libdbmessage.a /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/refresh_sessions_gen.h --output build/opt/mongo/db/refresh_sessions_gen.cpp src/mongo/db/refresh_sessions.idl /home/naourr/work/instance-2/output-1/host/bin/python 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 /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/end_sessions_gen.h --output build/opt/mongo/db/commands/end_sessions_gen.cpp src/mongo/db/commands/end_sessions.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/start_session_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/start_session_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/coll_mod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/coll_mod.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_interface_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_interface_remote.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_interface_remote.a build/opt/mongo/db/repl/oplog_interface_remote.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_interface_remote.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/test_commands.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/whats_my_uri_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/rollback_gen.h --output build/opt/mongo/db/repl/rollback_gen.cpp src/mongo/db/repl/rollback.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_process.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_process.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.cpp:47: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/measure.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/key_generator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_mock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/router_stage_mock.cpp /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.h --output build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp src/mongo/s/request_types/flush_routing_table_cache_updates.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/stringtriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/stringtriebuilder.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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/operation_context_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/operation_context_group.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog_raii.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog_raii.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_database_catalog_entry_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_database_catalog_entry_base.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/global_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/global_settings.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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libglobal_settings.a build/opt/mongo/db/global_settings.o Skipping ranlib for thin archive build/opt/mongo/db/libglobal_settings.a In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/python 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 ar rcsTD build/opt/mongo/db/storage/kv/libkv_database_catalog_entry_core.a build/opt/mongo/db/storage/kv/kv_database_catalog_entry_base.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_database_catalog_entry_core.a /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/s/add_shard_cmd_gen.h --output build/opt/mongo/db/s/add_shard_cmd_gen.cpp src/mongo/db/s/add_shard_cmd.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/task_executor_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/task_executor_pool.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rollback_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rollback_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/factory.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/executor/libtask_executor_pool.a build/opt/mongo/executor/task_executor_pool.o Skipping ranlib for thin archive build/opt/mongo/executor/libtask_executor_pool.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/dbclient_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/dbclient_rs.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_get_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_get_status_cmd.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coptccal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/coptccal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.c /home/naourr/work/instance-2/output-1/host/bin/python 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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_queue.cpp ar rcsTD build/opt/mongo/db/repl/librepl_set_status_commands.a build/opt/mongo/db/repl/repl_set_command.o build/opt/mongo/db/repl/repl_set_get_status_cmd.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_set_status_commands.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/file_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/file_allocator.cpp src/mongo/db/repl/rollback_impl.cpp: In member function 'boost::optional mongo::repl::RollbackImpl::_findDocumentById(mongo::OperationContext*, mongo::UUID, mongo::NamespaceString, mongo::BSONElement)': src/mongo/db/repl/rollback_impl.cpp:760:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 760 | boost::optional RollbackImpl::_findDocumentById(OperationContext* opCtx, | ^~~~~~~~~~~~ src/mongo/db/repl/rollback_impl.cpp: In member function 'virtual void mongo::repl::RollbackImpl::_writeRollbackFileForNamespace(mongo::OperationContext*, mongo::UUID, mongo::NamespaceString, const SimpleBSONObjUnorderedSet&)': src/mongo/db/repl/rollback_impl.cpp:839:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 839 | auto document = _findDocumentById(opCtx, uuid, nss, id.firstElement()); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unumsys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unumsys.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_commands.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_request_votes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_request_votes.cpp ar rcsTD build/opt/mongo/db/repl/librollback_impl.a build/opt/mongo/db/repl/rollback_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_set.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 -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 -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_set.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucsdet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucsdet.cpp /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/view.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/pipeline_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/pipeline_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_commands.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_commands.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/view_graph.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/views/view_graph.h:33, from src/mongo/db/views/view_graph.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/views/view_graph.h:33, from src/mongo/db/views/view_graph.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/view_catalog.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_config_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_config_version.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_commands.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locbased.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/locbased.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/signal_handlers_synchronous.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/umapfile.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 -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 -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/umapfile.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version_parser.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version_command_parser.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.cpp:47: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_posix.cpp ar rcsTD build/opt/mongo/db/repl/librepl_set_commands.a build/opt/mongo/db/repl/repl_set_commands.o build/opt/mongo/db/repl/repl_set_request_votes.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_set_commands.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/op_observer_sharding_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/op_observer_sharding_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_array_items.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/mmap_v1/libmmap.a build/opt/mongo/db/storage/mmap_v1/mmap.o build/opt/mongo/db/storage/mmap_v1/mmap_posix.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libmmap.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/connection_pool_stats.cpp ar rcsTD build/opt/mongo/db/commands/libfeature_compatibility_parsers.a build/opt/mongo/db/commands/feature_compatibility_version_parser.o build/opt/mongo/db/commands/feature_compatibility_version_command_parser.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libfeature_compatibility_parsers.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_session_external_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:33: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_manager_external_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_session_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_session_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_set.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_manager_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/read_concern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/read_concern.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rslog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rslog.cpp /home/naourr/work/instance-2/output-1/host/bin/python 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 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection_sharded.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection_sharded.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/sessions_collection_sharded.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/sessions_collection_sharded.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/sessions_collection_sharded.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/explain.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/sessions_collection_sharded.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauth_impl_internal.a build/opt/mongo/db/auth/authorization_manager_impl.o build/opt/mongo/db/auth/authorization_session_impl.o build/opt/mongo/db/auth/authz_manager_external_state.o build/opt/mongo/db/auth/authz_session_external_state.o build/opt/mongo/db/auth/user_set.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_impl_internal.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/sessions_collection_sharded.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsessions_collection_sharded.a build/opt/mongo/db/sessions_collection_sharded.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_sharded.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regextxt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/regextxt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/name2uni.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/name2uni.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/parameters.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unifiedcache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unifiedcache.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fmtable_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/fmtable_cnv.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_ranker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_ranker.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/secure_zero_memory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/secure_zero_memory.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/split_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/split_chunk_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_create.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_create.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:46: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/query/plan_ranker.cpp:38: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 double&}; _Tp = double; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::pair}; _Tp = std::pair; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:62, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/query/plan_ranker.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h: In constructor 'std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, std::_Temporary_buffer<_ForwardIterator, _Tp>::size_type) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 243 | _Temporary_buffer<_ForwardIterator, _Tp>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/query/plan_ranker.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:61, from src/mongo/db/query/plan_ranker.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/query/plan_ranker.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = __gnu_cxx::__normal_iterator*, std::vector > >; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/query/plan_ranker.cpp:38: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static size_t mongo::PlanRanker::pickBestPlan(const std::vector&, mongo::PlanRankingDecision*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/query/plan_ranker.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/query/plan_ranker.cpp:38: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polygon.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2cellid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cellid.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2latlng.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2latlng.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2cellid.h:14, from src/third_party/s2/s2cellid.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {S2CellId}; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {S2CellId}; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/logger/message_log_domain.h:35, from src/mongo/logger/component_message_log_domain.h:34, from src/mongo/logger/log_manager.h:36, from src/mongo/logger/logger.h:33, from src/third_party/s2/base/logging.h:20, from src/third_party/s2/s2.h:23, from src/third_party/s2/s2polygon.cc:10: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 Vector3&}; _Tp = Vector3; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2polygon.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:78:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 78 | __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:78:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:78:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:78:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1879 | __final_insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s1interval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s1interval.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2cap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cap.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2edgeindex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2edgeindex.cc In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2polygon.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Distance = int; _Tp = std::pair >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2polygon.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1920:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1920 | std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1921 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1920:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void ClipBoundary(const S2Polygon*, bool, const S2Polygon*, bool, bool, bool, S2PolygonBuilder*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void BreakEdgesAndAddToBuilder(S2LoopsAsVectorsIndex*, S2PolygonBuilder*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void S2Polygon::InternalClipPolyline(bool, const S2Polyline*, std::vector*, S1Angle) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/logger/message_log_domain.h:35, from src/mongo/logger/component_message_log_domain.h:34, from src/mongo/logger/log_manager.h:36, from src/mongo/logger/logger.h:33, from src/third_party/s2/base/logging.h:20, from src/third_party/s2/s2.h:23, from src/third_party/s2/s2polygon.cc:10: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2cell.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cell.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2latlngrect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2latlngrect.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2region.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2region.cc In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2edgeindex.h:16, from src/third_party/s2/s2edgeindex.cc:54: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 S2CellId&}; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2edgeindex.h:16, from src/third_party/s2/s2edgeindex.cc:54: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'int S2EdgeIndex::GetCovering(const S2Point&, const S2Point&, bool, std::vector*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2edgeindex.h:16, from src/third_party/s2/s2edgeindex.cc:54: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {S2CellId}; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static void S2EdgeIndex::GetEdgesInChildrenCells(const S2Point&, const S2Point&, std::vector*, const CellEdgeMultimap&, std::vector*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2r2rect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2r2rect.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2regioncoverer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regioncoverer.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2loop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2loop.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2cellunion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cellunion.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2polygonbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polygonbuilder.cc src/third_party/s2/s2loop.cc: In member function 'void S2Loop::Init(const std::vector >&)': src/third_party/s2/s2loop.cc:97:73: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 97 | memcpy(vertices_, &vertices[0], num_vertices_ * sizeof(vertices_[0])); | ^ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2loop.cc:16: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ src/third_party/s2/s2loop.cc: In constructor 'S2Loop::S2Loop(const S2Loop*)': src/third_party/s2/s2loop.cc:268:73: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 268 | memcpy(vertices_, src->vertices_, num_vertices_ * sizeof(vertices_[0])); | ^ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2loop.cc:16: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/third_party/s2/s2regioncoverer.h:6, from src/third_party/s2/s2regioncoverer.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 S2CellId&}; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {S2CellId}; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void S2RegionCoverer::AddCandidate(S2RegionCoverer::Candidate*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/third_party/s2/s2regioncoverer.h:6, from src/third_party/s2/s2regioncoverer.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In static member function 'static void S2RegionCoverer::FloodFill(const S2Region&, const S2CellId&, std::vector*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2edgeutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2edgeutil.cc In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2cellunion.h:6, from src/third_party/s2/s2cellunion.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 S2CellId&}; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2cellunion.h:6, from src/third_party/s2/s2cellunion.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::GetIntersection(const S2CellUnion*, const S2CellId&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::Denormalize(int, int, std::vector*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'void GetDifferenceInternal(S2CellId, const S2CellUnion*, std::vector*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2cellunion.h:6, from src/third_party/s2/s2cellunion.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/logger/log_severity.h:36, from src/third_party/s2/base/logging.h:19, from src/third_party/s2/s2cellunion.h:10, from src/third_party/s2/s2cellunion.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/logger/log_severity.h:36, from src/third_party/s2/base/logging.h:19, from src/third_party/s2/s2cellunion.h:10, from src/third_party/s2/s2cellunion.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = S2CellId; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/logger/log_severity.h:36, from src/third_party/s2/base/logging.h:19, from src/third_party/s2/s2cellunion.h:10, from src/third_party/s2/s2cellunion.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'bool S2CellUnion::Normalize()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2cellunion.h:6, from src/third_party/s2/s2cellunion.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::Expand(int)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::Add(const std::vector&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::GetUnion(const S2CellUnion*, const S2CellUnion*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::GetIntersection(const S2CellUnion*, const S2CellUnion*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::InitFromRange(const S2CellId&, const S2CellId&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2polygonbuilder.h:17, from src/third_party/s2/s2polygonbuilder.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 Vector3&}; _Tp = Vector3; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2pointregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2pointregion.cc In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2.h:6, from src/third_party/s2/s2polygonbuilder.h:23, from src/third_party/s2/s2polygonbuilder.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2polygonbuilder.h:17, from src/third_party/s2/s2polygonbuilder.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2PolygonBuilder::BuildMergeMap(S2PolygonBuilder::PointIndex*, S2PolygonBuilder::MergeMap*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2.h:6, from src/third_party/s2/s2polygonbuilder.h:23, from src/third_party/s2/s2polygonbuilder.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = S2CellId; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2.h:6, from src/third_party/s2/s2polygonbuilder.h:23, from src/third_party/s2/s2polygonbuilder.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/set:60, from src/third_party/s2/s2loop.cc:9: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::pair std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_hint_unique_pos(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, const key_type&) [with _Key = Vector3; _Val = std::pair, int>; _KeyOfValue = std::_Select1st, int> >; _Compare = std::less >; _Alloc = std::allocator, int> >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2187:5: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, int>, std::_Select1st, int> >, std::less >, std::allocator, int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, int> >'} changed in GCC 7.1 2187 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2polygonbuilder.h:17, from src/third_party/s2/s2polygonbuilder.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'S2Loop* S2PolygonBuilder::AssembleLoop(const S2Point&, const S2Point&, S2PolygonBuilder::EdgeList*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool S2PolygonBuilder::AddEdge(const S2Point&, const S2Point&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2.h:6, from src/third_party/s2/s2polygonbuilder.h:23, from src/third_party/s2/s2polygonbuilder.cc:3: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void S2PolygonBuilder::SpliceEdges(S2PolygonBuilder::PointIndex*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polyline.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s1angle.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s1angle.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2regionintersection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regionintersection.cc src/third_party/s2/s2polyline.cc: In member function 'void S2Polyline::Init(const std::vector >&)': src/third_party/s2/s2polyline.cc:57:73: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 57 | memcpy(vertices_, &vertices[0], num_vertices_ * sizeof(vertices_[0])); | ^ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2polyline.cc:10: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ src/third_party/s2/s2polyline.cc: In constructor 'S2Polyline::S2Polyline(const S2Polyline*)': src/third_party/s2/s2polyline.cc:106:73: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 106 | memcpy(vertices_, src->vertices_, num_vertices_ * sizeof(vertices_[0])); | ^ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2polyline.cc:10: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2regionunion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regionunion.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_hungarian.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_hungarian.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmutamt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tmutamt.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/bson_depth.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/loadednormalizer2impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/loadednormalizer2impl.cpp /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/clone_catalog_data_gen.h --output build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp src/mongo/s/request_types/clone_catalog_data.idl ar rcsTD build/opt/third_party/s2/libs2.a build/opt/third_party/s2/s1angle.o build/opt/third_party/s2/s2.o build/opt/third_party/s2/s2cellid.o build/opt/third_party/s2/s2latlng.o build/opt/third_party/s2/s1interval.o build/opt/third_party/s2/s2cap.o build/opt/third_party/s2/s2cell.o build/opt/third_party/s2/s2cellunion.o build/opt/third_party/s2/s2edgeindex.o build/opt/third_party/s2/s2edgeutil.o build/opt/third_party/s2/s2latlngrect.o build/opt/third_party/s2/s2loop.o build/opt/third_party/s2/s2pointregion.o build/opt/third_party/s2/s2polygon.o build/opt/third_party/s2/s2polygonbuilder.o build/opt/third_party/s2/s2polyline.o build/opt/third_party/s2/s2r2rect.o build/opt/third_party/s2/s2region.o build/opt/third_party/s2/s2regioncoverer.o build/opt/third_party/s2/s2regionintersection.o build/opt/third_party/s2/s2regionunion.o Skipping ranlib for thin archive build/opt/third_party/s2/libs2.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/extent.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/extent.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/clone_catalog_data_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/clone_catalog_data_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog_cache.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_settings.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/type_migration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/type_migration.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/zonemeta.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/zonemeta.cpp /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/get_database_version_gen.h --output build/opt/mongo/s/request_types/get_database_version_gen.cpp src/mongo/s/request_types/get_database_version.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/get_database_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/get_database_version_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucal.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/split_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/split_chunk_request_type.cpp 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/utypes.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 -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 -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/utypes.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbinode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbbinode.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/icuplug.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/icuplug.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/intrusive_counter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/intrusive_counter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_object_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp ar rcsTD build/opt/mongo/util/libintrusive_counter.a build/opt/mongo/util/intrusive_counter.o Skipping ranlib for thin archive build/opt/mongo/util/libintrusive_counter.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:83:21: warning: redundant move in return statement [-Wredundant-move] 83 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:83:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/transport_layer_asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/transport_layer_asio.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_drop_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_drop_collection_command.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/parse_number.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/strnlen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/strnlen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/merge_chunks_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/merge_chunks_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustr_wcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ustr_wcs.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/find_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/find_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/transport/transport_layer_asio.cpp: In member function 'virtual mongo::transport::BatonHandle mongo::transport::TransportLayerASIO::makeBaton(mongo::OperationContext*)': src/mongo/transport/transport_layer_asio.cpp:900:21: warning: redundant move in return statement [-Wredundant-move] 900 | return std::move(baton); | ~~~~~~~~~^~~~~~~ src/mongo/transport/transport_layer_asio.cpp:900:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/transport/session.h:40, from src/mongo/transport/transport_layer.h:37, from src/mongo/transport/transport_layer_asio.h:43, from src/mongo/transport/transport_layer_asio.cpp:35: src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::&; Args = {mongo::future_details::FakeVoid}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:842:71: required from 'mongo::future_details::Future mongo::future_details::Future::then(Func&&) && [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::; Result = void; = void; T = mongo::future_details::FakeVoid]' src/mongo/util/future.h:1248:62: required from 'auto mongo::future_details::Future::then(Func&&) && [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::]' src/mongo/transport/transport_layer_asio.cpp:615:63: required from here src/mongo/util/future.h:177:32: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(status); | ^ src/mongo/util/future.h:177:32: 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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::&; Args = {mongo::Status}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:916:55: required from 'mongo::future_details::Future mongo::future_details::Future::onError(Func&&) && [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::; Result = mongo::future_details::FakeVoid; = void; T = mongo::future_details::FakeVoid]' src/mongo/util/future.h:1253:65: required from 'mongo::future_details::Future mongo::future_details::Future::onError(Func&&) && [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::]' src/mongo/transport/session_asio.h:669:18: required from here src/mongo/util/future.h:177:32: warning: redundant move in return statement [-Wredundant-move] src/mongo/util/future.h:177:32: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_command.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/periodic_runner_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/periodic_runner_factory.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_client_direct.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/s/merge_chunks_command.cpp:36: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ChunkType&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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) [with _Key = mongo::transport::TransportLayerASIO::BatonASIO::Timer; _Val = mongo::transport::TransportLayerASIO::BatonASIO::Timer; _KeyOfValue = std::_Identity; _Compare = mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2504:5: note: parameter passing for argument of type 'std::_Rb_tree, mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2504 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/sleep_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/sleep_command.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/s/merge_chunks_command.cpp:36: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::Status mongo::{anonymous}::mergeChunks(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::BSONObj&, const mongo::OID&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/keys_collection_client.h:33, from src/mongo/db/keys_collection_client_direct.h:37, from src/mongo/db/keys_collection_client_direct.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/field_parser.h:328, from src/mongo/db/s/merge_chunks_command.cpp:40: src/mongo/db/field_parser-inl.h: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField >&, std::vector*, std::string*) [with T = mongo::BSONObj]': src/mongo/db/field_parser-inl.h:160:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 160 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::StatusWith > mongo::KeysCollectionClientDirect::getNewKeys(mongo::OperationContext*, mongo::StringData, const mongo::LogicalTime&, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual bool mongo::transport::TransportLayerASIO::BatonASIO::run(mongo::OperationContext*, boost::optional)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1208:2: note: parameter passing for argument of type 'std::_Rb_tree, mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1208 | _M_erase_aux(__position); | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual bool mongo::transport::TransportLayerASIO::BatonASIO::cancelTimer(const mongo::transport::ReactorTimer&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1208:2: note: parameter passing for argument of type 'std::_Rb_tree, mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1208 | _M_erase_aux(__position); | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In static member function 'static void std::_Function_handler::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Functor = mongo::transport::TransportLayerASIO::BatonASIO::_safeExecute(std::unique_lock, Callback&&) [with Callback = mongo::transport::TransportLayerASIO::BatonASIO::cancelTimer(const mongo::transport::ReactorTimer&)::]::; _ArgTypes = {}]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1208:2: note: parameter passing for argument of type 'std::_Rb_tree, mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1208 | _M_erase_aux(__position); | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/filterednormalizer2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/filterednormalizer2.cpp ar rcsTD build/opt/mongo/db/libkeys_collection_client_direct.a build/opt/mongo/db/keys_collection_client_direct.o Skipping ranlib for thin archive build/opt/mongo/db/libkeys_collection_client_direct.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/generic_cursor_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/generic_cursor_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/python 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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_mongod.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 asio::detail::timer_queue > >::heap_entry&}; _Tp = asio::detail::timer_queue > >::heap_entry; _Alloc = std::allocator > >::heap_entry>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector > >::heap_entry, std::allocator > >::heap_entry> >::iterator' {aka '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void asio::detail::epoll_reactor::schedule_timer(asio::detail::timer_queue&, const typename Time_Traits::time_type&, typename asio::detail::timer_queue::per_timer_data&, asio::detail::wait_op*) [with Time_Traits = asio::detail::chrono_time_traits >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 asio::detail::timer_queue > >::heap_entry&}; _Tp = asio::detail::timer_queue > >::heap_entry; _Alloc = std::allocator > >::heap_entry>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector > >::heap_entry, std::allocator > >::heap_entry> >::iterator' {aka '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector > >::heap_entry, std::allocator > >::heap_entry> >::iterator' {aka '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void asio::detail::epoll_reactor::schedule_timer(asio::detail::timer_queue&, const typename Time_Traits::time_type&, typename asio::detail::timer_queue::per_timer_data&, asio::detail::wait_op*) [with Time_Traits = asio::detail::chrono_time_traits >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/http_client_curl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/http_client_curl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/free_mon/free_mon_commands_gen.h --output build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp src/mongo/db/free_mon/free_mon_commands.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_commands.cpp ar rcsTD build/opt/mongo/db/libgeneric_cursor.a build/opt/mongo/db/generic_cursor_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libgeneric_cursor.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_status.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_options.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/pipeline/document_sources_gen.h --output build/opt/mongo/db/pipeline/document_sources_gen.cpp src/mongo/db/pipeline/document_sources.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_change_stream_transform.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream_transform.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_heartbeat_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_args.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.c In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache_factory_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_cache_factory_mongos.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/free_mon/libfree_mon_mongod.a build/opt/mongo/db/free_mon/free_mon_commands.o build/opt/mongo/db/free_mon/free_mon_mongod.o build/opt/mongo/db/free_mon/free_mon_options.o build/opt/mongo/db/free_mon/free_mon_status.o build/opt/mongo/db/free_mon/http_client_curl.o Skipping ranlib for thin archive build/opt/mongo/db/free_mon/libfree_mon_mongod.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/transport_layer_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblogical_session_cache_factory_mongos.a build/opt/mongo/db/logical_session_cache_factory_mongos.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache_factory_mongos.a /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/cluster_statistics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/cluster_statistics.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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_avg.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_avg.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_avg.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/near.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::Document mongo::DocumentSourceChangeStreamTransform::applyTransformation(const mongo::Document&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_avg.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_avg.cpp:33: 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/smpdtfst.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/anytrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/anytrans.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.c In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/geometry_container.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/geometry_container.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/geoparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/geoparser.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.c 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/stubdata/stubdata.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 -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 -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 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/stubdata/stubdata.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/options_parser.cpp src/mongo/db/geo/geoparser.cpp: In function 'mongo::Status mongo::isLoopClosed(const std::vector >&, mongo::BSONElement)': src/mongo/db/geo/geoparser.cpp:169:15: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 169 | static Status isLoopClosed(const vector& loop, const BSONElement loopElt) { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_properties.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:33, from src/mongo/db/geo/geoparser.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 Vector3&}; _Tp = Vector3; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:33, from src/mongo/db/geo/geoparser.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::Status mongo::parseArrayOfCoordinates(const mongo::BSONElement&, std::vector >*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:33, from src/mongo/db/geo/geoparser.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Point&}; _Tp = mongo::Point; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:33, from src/mongo/db/geo/geoparser.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In static member function 'static mongo::Status mongo::GeoParser::parseLegacyPolygon(const mongo::BSONObj&, mongo::PolygonWithCRS*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/geo/geoparser.cpp: In function 'mongo::Status mongo::parseGeoJSONPolygonCoordinates(const mongo::BSONElement&, bool, S2Polygon*)': src/mongo/db/geo/geoparser.cpp:203:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 203 | status = isLoopClosed(points, coordinateElt); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/geo/geoparser.cpp: In static member function 'static mongo::Status mongo::GeoParser::parseGeoJSONPolygon(const mongo::BSONObj&, bool, mongo::PolygonWithCRS*)': src/mongo/db/geo/geoparser.cpp:314:26: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 314 | status = isLoopClosed(exteriorVertices, coordinates.front()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/near.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::IntervalStats; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/geo/libgeoparser.a build/opt/mongo/db/geo/geoparser.o build/opt/mongo/db/geo/geometry_container.o In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/near.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > >; _Distance = int; _Tp = mongo::NearStage::SearchResult; _Compare = __gnu_cxx::__ops::_Iter_comp_val >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/geo/libgeoparser.a In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/near.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::NearStage::SearchResult}; _Tp = mongo::NearStage::SearchResult; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/remote_command_targeter_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_rs.cpp /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::PlanStage::StageState mongo::NearStage::bufferNext(mongo::WorkingSetID*, mongo::Status*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/remote_command_targeter_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_standalone.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/remote_command_targeter_factory_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_factory_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/patternprops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/patternprops.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_first.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/set_shard_version_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/set_shard_version_request.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_first.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_first.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/client/libremote_command_targeter.a build/opt/mongo/client/remote_command_targeter_factory_impl.o build/opt/mongo/client/remote_command_targeter_rs.o build/opt/mongo/client/remote_command_targeter_standalone.o Skipping ranlib for thin archive build/opt/mongo/client/libremote_command_targeter.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/generic_servers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/generic_servers.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/conn_pool_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/conn_pool_sync.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/user_management_commands_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/user_management_commands_common.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/authentication_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/authentication_commands.cpp 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/mr_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/mr_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/reap_logical_session_cache_now.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/reap_logical_session_cache_now.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/conn_pool_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/conn_pool_stats.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/refresh_sessions_command_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/refresh_sessions_command_internal.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.cpp:31: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/isself.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/isself.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/connection_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/connection_status.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/collection_to_capped.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/collection_to_capped.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbiscan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbbiscan.cpp 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucharstriebuilder.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servslkf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/servslkf.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/sortkey.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/sortkey.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/instance.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/instance.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_client_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_client_info.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/paths.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/paths.cpp ar rcsTD build/opt/mongo/db/commands/libservers.a build/opt/mongo/db/commands/authentication_commands.o build/opt/mongo/db/commands/conn_pool_stats.o build/opt/mongo/db/commands/conn_pool_sync.o build/opt/mongo/db/commands/connection_status.o build/opt/mongo/db/commands/generic_servers.o build/opt/mongo/db/commands/isself.o build/opt/mongo/db/commands/mr_common.o build/opt/mongo/db/commands/reap_logical_session_cache_now.o build/opt/mongo/db/commands/refresh_sessions_command_internal.o build/opt/mongo/db/commands/user_management_commands_common.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libservers.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/pipeline_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/pipeline_d.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/libpaths.a build/opt/mongo/db/storage/mmap_v1/paths.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libpaths.a /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 ar rcsTD build/opt/mongo/db/repl/librepl_coordinator_interface.a build/opt/mongo/db/repl/repl_client_info.o build/opt/mongo/db/repl/replication_coordinator.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_coordinator_interface.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_geo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_geo.cpp /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/auth/address_restriction_gen.h --output build/opt/mongo/db/auth/address_restriction_gen.cpp src/mongo/db/auth/address_restriction.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/address_restriction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/address_restriction.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_geo.h:38, from src/mongo/db/matcher/expression_geo.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_geo.h:38, from src/mongo/db/matcher/expression_geo.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/db/pipeline/pipeline_d.h:40, from src/mongo/db/pipeline/pipeline_d.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/db/pipeline/pipeline_d.h:40, from src/mongo/db/pipeline/pipeline_d.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_geo.h:39, from src/mongo/db/matcher/expression_geo.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/pipeline/pipeline_d.h:41, from src/mongo/db/pipeline/pipeline_d.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_geo.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/pipeline/pipeline_d.h:41, from src/mongo/db/pipeline/pipeline_d.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/translit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/translit.cpp ar rcsTD build/opt/mongo/db/s/libop_observer_sharding_impl.a build/opt/mongo/db/s/op_observer_sharding_impl.o Skipping ranlib for thin archive build/opt/mongo/db/s/libop_observer_sharding_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_russian.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_russian.c src/mongo/db/matcher/expression_geo.cpp: In member function 'virtual std::unique_ptr mongo::GeoMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_geo.cpp:417:21: warning: redundant move in return statement [-Wredundant-move] 417 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_geo.cpp:417:21: note: remove 'std::move' call src/mongo/db/matcher/expression_geo.cpp: In member function 'virtual std::unique_ptr mongo::GeoNearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_geo.cpp:474:21: warning: redundant move in return statement [-Wredundant-move] 474 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_geo.cpp:474:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/message.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/message.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/protocol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/protocol.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_geo.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/pipeline_d.cpp: In static member function 'static mongo::StatusWith > mongo::PipelineD::prepareExecutor(mongo::OperationContext*, mongo::Collection*, const mongo::NamespaceString&, mongo::Pipeline*, const boost::intrusive_ptr&, bool, const boost::intrusive_ptr&, const mongo::DepsTracker&, const mongo::BSONObj&, const mongo::AggregationRequest*, mongo::BSONObj*, mongo::BSONObj*)': src/mongo/db/pipeline/pipeline_d.cpp:452:29: warning: redundant move in return statement [-Wredundant-move] 452 | return std::move(exec); | ~~~~~~~~~^~~~~~ src/mongo/db/pipeline/pipeline_d.cpp:452:29: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/op_msg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/op_msg.cpp src/mongo/db/matcher/expression_geo.cpp: In member function 'mongo::Status mongo::GeoNearExpression::parseNewQuery(const mongo::BSONObj&)': src/mongo/db/matcher/expression_geo.cpp:238:93: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 238 | if (PathAcceptingKeyword::GEO_NEAR != MatchExpressionParser::parsePathAcceptingKeyword(e)) { | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/apply_ops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/apply_ops.cpp src/mongo/db/matcher/expression_geo.cpp: In member function 'mongo::Status mongo::GeoExpression::parseQuery(const mongo::BSONObj&)': src/mongo/db/matcher/expression_geo.cpp:66:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 66 | auto keyword = MatchExpressionParser::parsePathAcceptingKeyword(queryElt); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucat.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 -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 -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/ucat.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/bgsync.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/pipeline/pipeline_d.h:41, from src/mongo/db/pipeline/pipeline_d.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/rpc/libprotocol.a build/opt/mongo/rpc/message.o build/opt/mongo/rpc/op_msg.o build/opt/mongo/rpc/protocol.o Skipping ranlib for thin archive build/opt/mongo/rpc/libprotocol.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/limit.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_commands_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_shard_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard_collection.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/s/catalog/type_shard_collection.cpp: In static member function 'static mongo::StatusWith mongo::ShardCollectionType::fromBSON(const mongo::BSONObj&)': src/mongo/s/catalog/type_shard_collection.cpp:87:49: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 87 | auto uuidWith = UUID::parse(uuidElem); | ^ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/apply_ops.h:31, from src/mongo/db/repl/apply_ops.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BSONObj&}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static mongo::repl::MultiApplier::Operations mongo::repl::ApplyOps::extractOperations(const mongo::repl::OplogEntry&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/working_set.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/granularity_rounder_preferred_numbers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/resbund.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/resbund.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/cluster_cursor_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/hostname_canonicalization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/hostname_canonicalization.cpp ar rcsTD build/opt/mongo/db/exec/libworking_set.a build/opt/mongo/db/exec/working_set.o Skipping ranlib for thin archive build/opt/mongo/db/exec/libworking_set.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/sockaddr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/sockaddr.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/granularity_rounder.h:33, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In constructor 'std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = double; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:622:7: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 622 | vector(initializer_list __l, | ^~~~~~ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp: In function 'void __static_initialization_and_destruction_0(int, int)': src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:44:49: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 44 | const vector r5Series{10, 16, 25, 40, 63}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:46:80: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 46 | const vector r10Series{100, 125, 160, 200, 250, 315, 400, 500, 630, 800}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:49:80: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 49 | 315, 355, 400, 450, 500, 560, 630, 710, 800, 900}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:53:95: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 53 | 475, 500, 530, 560, 600, 630, 670, 710, 750, 800, 850, 900, 950}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:57:90: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 57 | 515, 545, 575, 615, 650, 690, 730, 775, 825, 875, 925, 975}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:61:42: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 61 | const vector series125{10, 20, 50}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:65:53: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 65 | const vector e6Series{10, 15, 22, 33, 47, 68}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:67:78: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 67 | const vector e12Series{10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:70:78: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 70 | 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:75:90: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 75 | 562, 590, 619, 649, 681, 715, 750, 787, 825, 866, 909, 953}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:83:90: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 83 | 750, 768, 787, 806, 825, 845, 866, 887, 909, 931, 953, 976}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:96:63: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 96 | 866, 876, 887, 898, 909, 920, 931, 942, 953, 965, 976, 988}; | ^ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/granularity_rounder.h:33, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Decimal128}; _Tp = mongo::Decimal128; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/hostandport.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/hostandport.cpp /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Decimal128}; _Tp = mongo::Decimal128; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/util/net/hostandport_gen.h --output build/opt/mongo/util/net/hostandport_gen.cpp src/mongo/util/net/hostandport.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/hostandport_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc build/opt/mongo/util/net/hostandport_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/cidr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/cidr.cpp 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:705:21: warning: redundant move in return statement [-Wredundant-move] 705 | return std::move(cursor); | ~~~~~~~~~^~~~~~~~ src/mongo/s/query/cluster_cursor_manager.cpp:705:21: note: remove 'std::move' call src/mongo/util/net/cidr.cpp: In static member function 'static mongo::StatusWith mongo::CIDR::parse(mongo::BSONElement)': src/mongo/util/net/cidr.cpp:92:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 92 | StatusWith CIDR::parse(BSONElement from) noexcept { | ^~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/socket_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/socket_exception.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/socket_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/socket_utils.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_context.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/query/cluster_cursor_manager.h:35, from src/mongo/s/query/cluster_cursor_manager.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::GenericCursor; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'std::vector mongo::ClusterCursorManager::getAllCursors() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/command_can_run_here.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/command_can_run_here.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/net/libnetwork.a build/opt/mongo/util/net/cidr.o build/opt/mongo/util/net/hostandport.o build/opt/mongo/util/net/hostname_canonicalization.o build/opt/mongo/util/net/sockaddr.o build/opt/mongo/util/net/socket_exception.o build/opt/mongo/util/net/socket_utils.o build/opt/mongo/util/net/hostandport_gen.o Skipping ranlib for thin archive build/opt/mongo/util/net/libnetwork.a /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/create_database_gen.h --output build/opt/mongo/s/request_types/create_database_gen.cpp src/mongo/s/request_types/create_database.idl In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/s/query/libcluster_cursor_manager.a build/opt/mongo/s/query/cluster_cursor_manager.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_cursor_manager.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/get_shard_map_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_create_database_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_create_database_command.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcommand_can_run_here.a build/opt/mongo/db/command_can_run_here.o Skipping ranlib for thin archive build/opt/mongo/db/libcommand_can_run_here.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/initialize_server_global_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/initialize_server_global_state.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_options_init.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/lasterror.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/lasterror.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_proxy.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_update_on_add_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/router_stage_update_on_add_shard.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.c /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/write_concern_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/write_concern_options.cpp ar rcsTD build/opt/mongo/db/libmongodandmongos.a build/opt/mongo/db/initialize_server_global_state.o build/opt/mongo/db/server_options_init.o Skipping ranlib for thin archive build/opt/mongo/db/libmongodandmongos.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbnf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbnf.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_parser.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_parser.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_parser.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_parser.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_parser.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libwrite_concern_options.a build/opt/mongo/db/write_concern_options.o Skipping ranlib for thin archive build/opt/mongo/db/libwrite_concern_options.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/processinfo_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/processinfo_linux.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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:45: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:57: src/mongo/db/matcher/schema/expression_internal_schema_fmod.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaFmodMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: warning: redundant move in return statement [-Wredundant-move] 51 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:59: src/mongo/db/matcher/schema/expression_internal_schema_max_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(maxItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:60: src/mongo/db/matcher/schema/expression_internal_schema_max_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(maxLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:61: src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:68:25: warning: redundant move in return statement [-Wredundant-move] 68 | return std::move(maxProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:68:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:62: src/mongo/db/matcher/schema/expression_internal_schema_min_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(minItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:63: src/mongo/db/matcher/schema/expression_internal_schema_min_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(minLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:64: src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:68:25: warning: redundant move in return statement [-Wredundant-move] 68 | return std::move(minProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:68:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:68: 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:59:25: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWith > > > mongo::{anonymous}::parsePatternProperties(mongo::BSONElement, mongo::StringData, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:953:21: warning: redundant move in return statement [-Wredundant-move] 953 | return std::move(patternProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:953:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:32: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/expression_parser.cpp:55: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:118:38: required from here src/mongo/db/matcher/expression_arity.h:133:31: warning: redundant move in return statement [-Wredundant-move] 133 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:133:31: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_parser.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_metadata.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_unicode_phrase_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_unicode_phrase_matcher.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_factory_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -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 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_icu.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_manager.cpp src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseComment(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:401:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 401 | StatusWithMatchExpression parseComment(StringData name, | ^~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/utility/compare_pointees.hpp:15, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:55, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/expression_parser.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = mongo::StatusWith >; _Functor = mongo::StatusWith > (*)(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel); _ArgTypes = {mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel}]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseWhere(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:410:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 410 | StatusWithMatchExpression parseWhere(StringData name, | ^~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:420:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 420 | return extensionsCallback->parseWhere(elem); | ^ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseText(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:423:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 423 | StatusWithMatchExpression parseText(StringData name, | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:438:46: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 438 | return extensionsCallback->parseText(elem); | ^ In file included from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:33, from src/mongo/db/matcher/expression_parser.cpp:56: src/mongo/bson/unordered_fields_bsonelement_comparator.h: In member function 'virtual void mongo::UnorderedFieldsBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/unordered_fields_bsonelement_comparator.h:53:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, toHash, ComparisonRules::kIgnoreFieldOrder, kStringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseExpr(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:494:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 494 | StatusWithMatchExpression parseExpr(StringData name, | ^~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:80, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 849 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseRegexElement(mongo::StringData, mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:217:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 217 | StatusWithMatchExpression parseRegexElement(StringData name, BSONElement e) { | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseDBRef(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:441:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 441 | StatusWithMatchExpression parseDBRef(StringData name, | ^~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseJSONSchema(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:455:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 455 | StatusWithMatchExpression parseJSONSchema(StringData name, | ^~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'bool mongo::{anonymous}::isExpressionDocument(mongo::BSONElement, bool)': src/mongo/db/matcher/expression_parser.cpp:297:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 297 | bool isExpressionDocument(BSONElement e, bool allowIncompleteDBRef) { | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In static member function 'static boost::optional mongo::MatchExpressionParser::parsePathAcceptingKeyword(mongo::BSONElement, boost::optional)': src/mongo/db/matcher/expression_parser.cpp:1902:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1902 | boost::optional MatchExpressionParser::parsePathAcceptingKeyword( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseRegexDocument(mongo::StringData, const mongo::BSONObj&)': src/mongo/db/matcher/expression_parser.cpp:541:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 541 | auto matchType = MatchExpressionParser::parsePathAcceptingKeyword(e); | ^ ar rcsTD build/opt/mongo/db/storage/libstorage_engine_metadata.a build/opt/mongo/db/storage/storage_engine_metadata.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_engine_metadata.a src/mongo/db/matcher/expression_parser.cpp: In static member function 'static mongo::StatusWith mongo::MatchExpressionParser::parseIntegerElementToLong(mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:137:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 137 | StatusWith MatchExpressionParser::parseIntegerElementToLong(BSONElement elem) { | ^~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/kill_sessions_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/kill_sessions_common.cpp src/mongo/db/matcher/expression_parser.cpp: In static member function 'static mongo::StatusWith mongo::MatchExpressionParser::parseIntegerElementToNonNegativeLong(mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:122:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 122 | StatusWith MatchExpressionParser::parseIntegerElementToNonNegativeLong( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:124:49: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 124 | auto number = parseIntegerElementToLong(elem); | ^ src/mongo/db/matcher/expression_parser.cpp: In static member function 'static mongo::StatusWith mongo::MatchExpressionParser::parseIntegerElementToInt(mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:182:17: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 182 | StatusWith MatchExpressionParser::parseIntegerElementToInt(BSONElement elem) { | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:183:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 183 | auto parsedLong = MatchExpressionParser::parseIntegerElementToLong(elem); | ^ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseInternalSchemaFmod(mongo::StringData, mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:711:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 711 | StatusWithMatchExpression parseInternalSchemaFmod(StringData name, BSONElement elem) { | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseInternalSchemaRootDocEq(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:744:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 744 | StatusWithMatchExpression parseInternalSchemaRootDocEq( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/collection_bulk_loader_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/collection_bulk_loader_impl.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseAlwaysBoolean(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::AlwaysTrueMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:474:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 474 | StatusWithMatchExpression parseAlwaysBoolean( | ^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:481:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 481 | auto statusWithLong = MatchExpressionParser::parseIntegerElementToLong(elem); | ^~~~~~~~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseAlwaysBoolean(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::AlwaysFalseMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:474:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 474 | StatusWithMatchExpression parseAlwaysBoolean( | ^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:481:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 481 | auto statusWithLong = MatchExpressionParser::parseIntegerElementToLong(elem); | ^~~~~~~~~~~~~~ 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseBitTest(mongo::StringData, mongo::BSONElement) [with T = mongo::BitsAnySetMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:680:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 680 | StatusWithMatchExpression parseBitTest(StringData name, BSONElement e) { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:692:14: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 692 | auto bitMask = MatchExpressionParser::parseIntegerElementToNonNegativeLong(e); | ^~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseBitTest(mongo::StringData, mongo::BSONElement) [with T = mongo::BitsAllClearMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:680:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 680 | StatusWithMatchExpression parseBitTest(StringData name, BSONElement e) { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:692:14: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 692 | auto bitMask = MatchExpressionParser::parseIntegerElementToNonNegativeLong(e); | ^~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseBitTest(mongo::StringData, mongo::BSONElement) [with T = mongo::BitsAllSetMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:680:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 680 | StatusWithMatchExpression parseBitTest(StringData name, BSONElement e) { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:692:14: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 692 | auto bitMask = MatchExpressionParser::parseIntegerElementToNonNegativeLong(e); | ^~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTopLevelInternalSchemaSingleIntegerArgument(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::InternalSchemaMaxPropertiesMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:788:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 788 | StatusWithMatchExpression parseTopLevelInternalSchemaSingleIntegerArgument( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:795:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 795 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTopLevelInternalSchemaSingleIntegerArgument(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::InternalSchemaMinPropertiesMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:788:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 788 | StatusWithMatchExpression parseTopLevelInternalSchemaSingleIntegerArgument( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:795:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 795 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseType(mongo::StringData, mongo::BSONElement) [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:595:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 595 | StatusWithMatchExpression parseType(StringData name, BSONElement elt) { | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:596:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 596 | auto typeSet = MatcherTypeSet::parse(elt, kTypeAliasMap); | ^~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locavailable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/locavailable.cpp src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::Status mongo::{anonymous}::parseSub(mongo::StringData, const mongo::BSONObj&, mongo::AndMatchExpression*, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:1736:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1736 | if (MatchExpressionParser::parsePathAcceptingKeyword(firstElt) == | ^ src/mongo/db/matcher/expression_parser.cpp:1402:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1402 | auto parseExpMatchType = MatchExpressionParser::parsePathAcceptingKeyword(e); | ^ src/mongo/db/matcher/expression_parser.cpp:1399:91: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1399 | return parseNot(name, e, expCtx, extensionsCallback, allowedFeatures, currentLevel); | ^ src/mongo/db/matcher/expression_parser.cpp:1399:91: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1512:58: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1512 | return parseType(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1512:58: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1522:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1522 | if (MatchExpressionParser::parsePathAcceptingKeyword(temp) == | ^ src/mongo/db/matcher/expression_parser.cpp:1535:87: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1535 | return parseElemMatch(name, e, expCtx, extensionsCallback, allowedFeatures); | ^ src/mongo/db/matcher/expression_parser.cpp:1535:87: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1538:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1538 | return parseAll(name, e, expCtx, extensionsCallback, allowedFeatures); | ^ src/mongo/db/matcher/expression_parser.cpp:1538:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1563:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1563 | return parseBitTest(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1563:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1567:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1567 | return parseBitTest(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1567:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1571:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1571 | return parseBitTest(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1571:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:692:14: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 692 | auto bitMask = MatchExpressionParser::parseIntegerElementToNonNegativeLong(e); | ^~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1579:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1579 | return parseInternalSchemaFmod(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1579:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:775:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 775 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:775:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 775 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:775:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 775 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:775:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 775 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1068:93: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1068 | auto index = MatchExpressionParser::parseIntegerElementToNonNegativeLong(subobj["index"]); | ^ src/mongo/db/matcher/expression_parser.cpp:1650:97: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1650 | auto parsedIndex = MatchExpressionParser::parseIntegerElementToNonNegativeLong(first); | ^ src/mongo/db/matcher/expression_parser.cpp:596:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 596 | auto typeSet = MatcherTypeSet::parse(elt, kTypeAliasMap); | ^~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:80, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 849 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/killcursors_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/killcursors_request.cpp src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parse(const mongo::BSONObj&, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:373:71: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 373 | auto result = parseRegexElement(e.fieldNameStringData(), e); | ^ src/mongo/db/matcher/expression_parser.cpp:373:71: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseInternalSchemaAllowedProperties(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:983:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 983 | StatusWithMatchExpression parseInternalSchemaAllowedProperties( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTreeTopLevel(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::OrMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1125 | StatusWithMatchExpression parseTreeTopLevel( | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTreeTopLevel(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::NorMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTreeTopLevel(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::AndMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTreeTopLevel(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::InternalSchemaXorMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseInternalSchemaFixedArityArgument(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::InternalSchemaCondMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1298:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1298 | StatusWithMatchExpression parseInternalSchemaFixedArityArgument( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1298:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseNot(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:1345:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1345 | StatusWithMatchExpression parseNot(StringData name, | ^~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1352:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1352 | auto regex = parseRegexElement(name, elem); | ^ src/mongo/db/matcher/expression_parser.cpp:1352:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseElemMatch(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet)': src/mongo/db/matcher/expression_parser.cpp:1157:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1157 | StatusWithMatchExpression parseElemMatch(StringData name, | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseAll(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet)': src/mongo/db/matcher/expression_parser.cpp:1228:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1228 | StatusWithMatchExpression parseAll(StringData name, | ^~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1262:56: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1262 | allowedFeatures); | ^ src/mongo/db/matcher/expression_parser.cpp:1262:56: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1278:91: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1278 | MatchExpressionParser::parsePathAcceptingKeyword(e.Obj().firstElement())) { | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/astro.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/astro.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/sharding_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/sharding_task_executor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/strings/split.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/split.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/query/killcursors_request.h:33, from src/mongo/db/query/killcursors_request.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/strings/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/stringprintf.cc /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static mongo::StatusWith mongo::KillCursorsRequest::parseFromBSON(const string&, const mongo::BSONObj&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/query/killcursors_request.cpp:92:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 92 | } | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/strings/strutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/strutil.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/fill_locker_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/fill_locker_info.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_ct.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 -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 -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_ct.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_norwegian.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_norwegian.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_portuguese.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_portuguese.c ar rcsTD build/opt/mongo/s/libsharding_task_executor.a build/opt/mongo/s/sharding_task_executor.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_task_executor.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_german.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_german.c ar rcsTD build/opt/third_party/s2/strings/libstrings.a build/opt/third_party/s2/strings/split.o build/opt/third_party/s2/strings/stringprintf.o build/opt/third_party/s2/strings/strutil.o Skipping ranlib for thin archive build/opt/third_party/s2/strings/libstrings.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_spanish.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_spanish.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_swedish.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_swedish.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_italian.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_italian.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_danish.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_danish.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_english.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_english.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_french.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_french.c ar rcsTD build/opt/mongo/db/stats/libfill_locker_info.a build/opt/mongo/db/stats/fill_locker_info.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libfill_locker_info.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_romanian.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_romanian.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_dutch.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_dutch.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/libstemmer/libstemmer_utf8.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/libstemmer/libstemmer_utf8.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_turkish.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_turkish.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_finnish.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_finnish.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_porter.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_porter.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/runtime/api.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 -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -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 -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/runtime/api.c ar rcsTD build/opt/third_party/icu4c-57.1/source/libicu_data.a build/opt/third_party/icu4c-57.1/source/stubdata/stubdata.o Skipping ranlib for thin archive build/opt/third_party/icu4c-57.1/source/libicu_data.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_collections.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/list_collections.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/interval.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/interval.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cursor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/cursor_manager.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batched_command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_command_request.cpp ar rcsTD build/opt/third_party/libstemmer_c/libstemmer.a build/opt/third_party/libstemmer_c/runtime/api.o build/opt/third_party/libstemmer_c/libstemmer/libstemmer_utf8.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_dutch.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_german.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_porter.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_spanish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_english.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_hungarian.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_portuguese.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_swedish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_finnish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_italian.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_romanian.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_turkish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_danish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_french.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_norwegian.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_russian.o Skipping ranlib for thin archive build/opt/third_party/libstemmer_c/libstemmer.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/icudataver.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 -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 -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/icudataver.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/console.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/console.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/do_txn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/do_txn.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/bson_collection_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/bson_collection_catalog_entry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = mongo::BSONCollectionCatalogEntry::IndexMetaData; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:171:5: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 171 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::BSONCollectionCatalogEntry::MetaData::eraseIndex(mongo::StringData)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1428:58: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1428 | { return _M_erase(begin() + (__position - cbegin())); } | ^ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BSONCollectionCatalogEntry::IndexMetaData&}; _Tp = mongo::BSONCollectionCatalogEntry::IndexMetaData; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/storage/bson_collection_catalog_entry.cpp: In member function 'void mongo::BSONCollectionCatalogEntry::MetaData::parse(const mongo::BSONObj&)': src/mongo/db/storage/bson_collection_catalog_entry.cpp:338:65: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 338 | imd.prefix = KVPrefix::fromBSONElement(idx["prefix"]); | ^ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/storage/bson_collection_catalog_entry.cpp:346:53: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 346 | prefix = KVPrefix::fromBSONElement(obj["prefix"]); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/write_error_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/write_error_detail.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/util/partitioned.h:39, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/cursor_manager.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::GenericCursor; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/bson/bsonelement.h:44, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/db/clientcursor.h:35, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::erase(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator) [with _Key = long long int; _Value = std::pair; _Alloc = std::allocator >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to; _H1 = std::hash; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:1849:5: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, false>'} changed in GCC 7.1 1849 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | _H1, _H2, _Hash, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::size_t mongo::CursorManager::timeoutCursors(mongo::OperationContext*, mongo::Date_t)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, false>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/is_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/is_mongos.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/util/partitioned.h:39, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/cursor_manager.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::CursorManager::appendActiveCursors(std::vector*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/bson/bsonelement.h:44, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/db/clientcursor.h:35, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'void mongo::CursorManager::invalidateAll(mongo::OperationContext*, bool, const string&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, false>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, false>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ src/mongo/db/repl/do_txn.cpp: In function 'mongo::Status mongo::doTxn(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder*)': src/mongo/db/repl/do_txn.cpp:143:54: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 143 | auto uuidStatus = UUID::parse(opObj["ui"]); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/client_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/client_metadata.cpp ar rcsTD build/opt/mongo/s/libis_mongos.a build/opt/mongo/s/is_mongos.o Skipping ranlib for thin archive build/opt/mongo/s/libis_mongos.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_entry_point_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/service_entry_point_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/index_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/index_iterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/indiancal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/indiancal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/mr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/mr.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_request_votes_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_request_votes_args.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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ustring.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/curop_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/curop_metrics.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/scoped_timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/scoped_timer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/exec/libscoped_timer.a build/opt/mongo/db/exec/scoped_timer.o Skipping ranlib for thin archive build/opt/mongo/db/exec/libscoped_timer.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sample_from_random_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uhash_us.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uhash_us.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/oplog_query_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/oplog_query_metadata.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libcurop_metrics.a build/opt/mongo/db/curop_metrics.o Skipping ranlib for thin archive build/opt/mongo/db/libcurop_metrics.a In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_capped.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_capped.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/bson/mutable/element.h:37, from src/mongo/db/auth/privilege.h:35, from src/mongo/db/commands/mr.h:38, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/commands/mr.cpp: In member function 'virtual bool mongo::mr::MapReduceFinishCommand::run(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder&)': src/mongo/db/commands/mr.cpp:1760:44: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1760 | uassertStatusOK(UUID::parse(cmdObj["shardedOutputCollUUID"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/touch_pages.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/touch_pages.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_simple.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_simple.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_lookup.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_lookup.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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/cpdtrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/cpdtrans.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_collection_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/update_lifecycle_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/update_lifecycle_impl.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/mmap_v1/librecord_store_v1.a build/opt/mongo/db/storage/mmap_v1/record_store_v1_base.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_capped.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_simple.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.o build/opt/mongo/db/storage/mmap_v1/touch_pages.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/librecord_store_v1.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/refresh_logical_session_cache_now.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/refresh_logical_session_cache_now.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, boost::intrusive_ptr, long long int}; _Tp = mongo::DocumentSourceLookUp::LetVariable; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Document}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/base/deinitializer_context.h:36, from src/mongo/base/init.h:46, from src/mongo/db/pipeline/document_source.h:42, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 = long long int; _Val = long long int; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2518 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/catalog/collection_catalog_entry.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.h:37, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BSONCollectionCatalogEntry::IndexMetaData&}; _Tp = mongo::BSONCollectionCatalogEntry::IndexMetaData; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/catalog/collection_catalog_entry.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.h:37, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Status mongo::KVCollectionCatalogEntry::prepareForIndexBuild(mongo::OperationContext*, const mongo::IndexDescriptor*, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceLookUp::getNext()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/generic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/generic.cpp src/mongo/db/pipeline/document_source_lookup.cpp: In constructor 'mongo::DocumentSourceLookUp::DocumentSourceLookUp(mongo::NamespaceString, std::string, std::vector >, mongo::BSONObj, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_lookup.cpp:128:37: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 128 | Expression::parseOperand(pExpCtx, varElem, pExpCtx->variablesParseState), | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/pipeline/document_source_lookup.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceLookUp::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_lookup.cpp:738:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 738 | intrusive_ptr DocumentSourceLookUp::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_lookup.cpp:759:77: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 759 | auto result = AggregationRequest::parsePipelineFromBSON(argument); | ^ In file included from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/pipeline/document_source_lookup.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_lookup(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_lookup.cpp:177:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 177 | REGISTER_DOCUMENT_SOURCE(lookup, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_sessions_command.cpp In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/pipeline/document_source.h:43, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/pipeline/document_source_lookup.cpp: In static member function 'static std::unique_ptr mongo::DocumentSourceLookUp::LiteParsed::parse(const mongo::AggregationRequest&, const mongo::BSONElement&)': src/mongo/db/pipeline/document_source_lookup.cpp:163:82: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 163 | auto pipeline = uassertStatusOK(AggregationRequest::parsePipelineFromBSON(pipelineElem)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/base/deinitializer_context.h:36, from src/mongo/base/init.h:46, from src/mongo/db/pipeline/document_source.h:42, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual mongo::DocumentSource::GetDepsReturn mongo::DocumentSourceLookUp::getDependencies(mongo::DepsTracker*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1248:2: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1248 | _M_erase_aux(__first, __last); | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2536:7: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2536 | _M_erase_aux(__p.first, __p.second); | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/rename_collection_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/rename_collection_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_all_sessions_by_pattern_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/find_and_modify_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/find_and_modify_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_all_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_all_sessions_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/copydb_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/copydb_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/end_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/end_sessions_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/fail_point_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/fail_point_cmd.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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/hashcmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/hashcmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/refresh_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/refresh_sessions_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/database_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/database_cloner.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/identifier_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/identifier_info.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/command_reply_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/command_reply_builder.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u8.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 -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 -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_u8.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/explain_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/explain_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/sort_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/sort_key_generator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libcore.a build/opt/mongo/db/commands/copydb_common.o build/opt/mongo/db/commands/end_sessions_command.o build/opt/mongo/db/commands/fail_point_cmd.o build/opt/mongo/db/commands/find_and_modify_common.o build/opt/mongo/db/commands/generic.o build/opt/mongo/db/commands/hashcmd.o build/opt/mongo/db/commands/kill_all_sessions_by_pattern_command.o build/opt/mongo/db/commands/kill_all_sessions_command.o build/opt/mongo/db/commands/kill_sessions_command.o build/opt/mongo/db/commands/parameters.o build/opt/mongo/db/commands/refresh_logical_session_cache_now.o build/opt/mongo/db/commands/refresh_sessions_command.o build/opt/mongo/db/commands/rename_collection_common.o build/opt/mongo/db/commands/start_session_command.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libcore.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/password_digest.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/password_digest.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/precision.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/precision.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_leaf_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_leaf_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/index_descriptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/index_descriptor.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_list_local_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_local_sessions.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/update_leaf_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/update_leaf_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/database_cloner.h:36, from src/mongo/db/repl/database_cloner.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::CollectionCloner::Stats}; _Tp = mongo::repl::CollectionCloner::Stats; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::repl::DatabaseCloner::Stats mongo::repl::DatabaseCloner::getStats() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/repl/database_cloner.cpp: In member function 'void mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith&, mongo::Fetcher::NextAction*, mongo::BSONObjBuilder*)': src/mongo/db/repl/database_cloner.cpp:383:61: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 383 | auto res = CollectionUUID::parse(uuidElement); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regeximp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/regeximp.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/curop_failpoint_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/curop_failpoint_helpers.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libdatabase_cloner.a build/opt/mongo/db/repl/database_cloner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdatabase_cloner.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/current_op_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_executor_adaptive.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/service_executor_adaptive.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/document_source_list_local_sessions.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceListLocalSessions::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_list_local_sessions.cpp:65:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 65 | boost::intrusive_ptr DocumentSourceListLocalSessions::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/pipeline/document_source_list_local_sessions.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_listLocalSessions(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_list_local_sessions.cpp:41:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 41 | REGISTER_DOCUMENT_SOURCE(listLocalSessions, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/thread_idle_callback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/thread_idle_callback.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_executor_synchronous.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/service_executor_synchronous.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_executor_reserved.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/service_executor_reserved.cpp /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.h --output build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp src/mongo/s/request_types/clone_collection_options_from_primary_shard.idl /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/shard_collection_gen.h --output build/opt/mongo/s/request_types/shard_collection_gen.cpp src/mongo/s/request_types/shard_collection.idl src/mongo/transport/service_executor_adaptive.cpp: In member function 'void mongo::transport::ServiceExecutorAdaptive::_workerThreadRoutine(int, std::__cxx11::list::iterator)': src/mongo/transport/service_executor_adaptive.cpp:555:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 555 | void ServiceExecutorAdaptive::_workerThreadRoutine( | ^~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_types.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shardsvr_shard_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shardsvr_shard_collection.cpp ar rcsTD build/opt/mongo/transport/libservice_executor.a build/opt/mongo/transport/service_executor_adaptive.o build/opt/mongo/transport/service_executor_reserved.o build/opt/mongo/transport/service_executor_synchronous.o build/opt/mongo/transport/thread_idle_callback.o Skipping ranlib for thin archive build/opt/mongo/transport/libservice_executor.a /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/simpletz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/simpletz.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_replace_root.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_replace_root.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucasemap_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucasemap_titlecase_brkiter.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/thread_pool_task_executor.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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/native_sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/native_sasl_client_session.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_scram_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/sasl_scram_client_conversation.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_client_authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/sasl_client_authenticate.cpp src/mongo/db/pipeline/document_source_replace_root.cpp: In member function 'void mongo::ReplaceRootTransformation::parse(const boost::intrusive_ptr&, const mongo::BSONElement&)': src/mongo/db/pipeline/document_source_replace_root.cpp:131:52: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 131 | _newRoot = Expression::parseOperand(expCtx, argument, vps); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_replace_root.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceReplaceRoot::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_replace_root.cpp:152:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | intrusive_ptr DocumentSourceReplaceRoot::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/pipeline/document_source_replace_root.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_replaceRoot(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_replace_root.cpp:148:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 148 | REGISTER_DOCUMENT_SOURCE(replaceRoot, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/sasl_client_session.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_client_authenticate_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/sasl_client_authenticate_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/sasl_client_conversation.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_plain_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/sasl_plain_client_conversation.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/current_op.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/hebrwcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/hebrwcal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/top_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/top_command.cpp In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonelement_comparator_interface.h:33, from src/mongo/bson/simple_bsonelement_comparator.h:33, from src/mongo/db/s/shardsvr_shard_collection.cpp:35: src/mongo/db/s/shardsvr_shard_collection.cpp: In function 'mongo::{anonymous}::ShardCollectionTargetState mongo::{anonymous}::calculateTargetState(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::ShardsvrShardCollection&)': src/mongo/db/s/shardsvr_shard_collection.cpp:423:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 423 | return uassertStatusOK(UUID::parse(collectionInfo["uuid"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/client/libsasl_client.a build/opt/mongo/client/native_sasl_client_session.o build/opt/mongo/client/sasl_client_authenticate.o build/opt/mongo/client/sasl_client_authenticate_impl.o build/opt/mongo/client/sasl_client_conversation.o build/opt/mongo/client/sasl_client_session.o build/opt/mongo/client/sasl_plain_client_conversation.o build/opt/mongo/client/sasl_scram_client_conversation.o Skipping ranlib for thin archive build/opt/mongo/client/libsasl_client.a /home/naourr/work/instance-2/output-1/host/bin/python src/mongo/db/fts/unicode/gen_delimiter_list.py src/third_party/unicode-8.0.0/PropList.txt build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_options_server_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_options_server_helpers.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_repair_observer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/remote_command_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/remote_command_response.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/geo_near_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/geo_near_cmd.cpp ar rcsTD build/opt/mongo/db/storage/libstorage_repair_observer.a build/opt/mongo/db/storage/storage_repair_observer.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_repair_observer.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/distinct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/distinct.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/killcursors_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libserver_options_servers.a build/opt/mongo/db/server_options_server_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_options_servers.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/create_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/create_indexes.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/lock_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/lock_info.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/validate.cpp /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/profile_gen.h --output build/opt/mongo/db/commands/profile_gen.cpp src/mongo/db/commands/profile.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/dbcommands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/dbcommands.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/stats/read_concern_stats_gen.h --output build/opt/mongo/db/stats/read_concern_stats_gen.cpp src/mongo/db/stats/read_concern_stats.idl In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/index_filter_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/index_filter_commands.cpp 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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/find_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/find_cmd.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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/getmore_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/getmore_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/list_databases_gen.h --output build/opt/mongo/db/commands/list_databases_gen.cpp src/mongo/db/commands/list_databases.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_databases.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/list_databases.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/list_indexes.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/find_and_modify.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/find_and_modify.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_op.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/plan_cache_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/plan_cache_commands.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/rename_collection_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/rename_collection_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/write_commands/write_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/write_commands/write_commands.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/drop_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/drop_indexes.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_cmd.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/run_aggregate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/run_aggregate.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/repair_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/repair_cursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/count_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/count_cmd.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/base/deinitializer_context.h:38, from src/mongo/base/init.h:46, from src/mongo/db/commands/write_commands/write_commands.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::StatusWith&}; _Tp = mongo::StatusWith; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'void mongo::{anonymous}::serializeReply(mongo::OperationContext*, mongo::{anonymous}::ReplyStyle, bool, size_t, mongo::WriteResult, mongo::BSONObjBuilder*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/get_last_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/get_last_error.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_index_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_index_stats.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/server_read_concern_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/server_read_concern_metrics.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_basic_tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_basic_tokenizer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/commands/libstandalone.a build/opt/mongo/db/commands/count_cmd.o build/opt/mongo/db/commands/create_indexes.o build/opt/mongo/db/commands/current_op.o build/opt/mongo/db/commands/dbcommands.o build/opt/mongo/db/commands/distinct.o build/opt/mongo/db/commands/drop_indexes.o build/opt/mongo/db/commands/explain_cmd.o build/opt/mongo/db/commands/find_and_modify.o build/opt/mongo/db/commands/find_cmd.o build/opt/mongo/db/commands/geo_near_cmd.o build/opt/mongo/db/commands/get_last_error.o build/opt/mongo/db/commands/getmore_cmd.o build/opt/mongo/db/commands/index_filter_commands.o build/opt/mongo/db/commands/kill_op.o build/opt/mongo/db/commands/killcursors_cmd.o build/opt/mongo/db/commands/lock_info.o build/opt/mongo/db/commands/list_collections.o build/opt/mongo/db/commands/list_databases.o build/opt/mongo/db/commands/list_indexes.o build/opt/mongo/db/commands/pipeline_command.o build/opt/mongo/db/commands/plan_cache_commands.o build/opt/mongo/db/commands/rename_collection_cmd.o build/opt/mongo/db/commands/repair_cursor.o build/opt/mongo/db/commands/run_aggregate.o build/opt/mongo/db/commands/sleep_command.o build/opt/mongo/db/commands/validate.o build/opt/mongo/db/commands/write_commands/write_commands.o In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/commands/libstandalone.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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unormcmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unormcmp.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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/clone_collection_options_from_primary_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/database_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/database_sharding_state.cpp src/mongo/db/pipeline/document_source_index_stats.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceIndexStats::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_index_stats.cpp:77:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 77 | intrusive_ptr DocumentSourceIndexStats::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/pipeline/document_source_index_stats.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_indexStats(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_index_stats.cpp:43:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 43 | REGISTER_DOCUMENT_SOURCE(indexStats, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csr2022.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/csr2022.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.c In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.c In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.c 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/lock_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_stats.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/database_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/database_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/databases_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/databases_cloner.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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/shard_remote.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_config_checks.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/async_client.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/databases_cloner.h:35, from src/mongo/db/repl/databases_cloner.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::DatabaseCloner::Stats}; _Tp = mongo::repl::DatabaseCloner::Stats; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::repl::DatabasesCloner::Stats mongo::repl::DatabasesCloner::getStats() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/s/client/libsharding_client.a build/opt/mongo/s/client/shard_remote.o Skipping ranlib for thin archive build/opt/mongo/s/client/libsharding_client.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/fetcher.cpp ar rcsTD build/opt/mongo/db/repl/libdatabases_cloner.a build/opt/mongo/db/repl/databases_cloner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdatabases_cloner.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/shard_key_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/shard_key_pattern.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/fetcher.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/shared_library.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/fetcher.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_where_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where_base.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/shard_key_pattern.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/shard_key_pattern.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/shard_key_pattern.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/move_primary_gen.h --output build/opt/mongo/s/request_types/move_primary_gen.cpp src/mongo/s/request_types/move_primary.idl 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_move_primary_command.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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/s/shard_key_pattern.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where_base.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where_base.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/transaction_history_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/fetcher.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/s/shard_key_pattern.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/base/strtoint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/strtoint.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/unset_sharding_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/unset_sharding_command.cpp ar rcsTD build/opt/mongo/client/libfetcher.a build/opt/mongo/client/fetcher.o Skipping ranlib for thin archive build/opt/mongo/client/libfetcher.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/islamcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/islamcal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/shard.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index_builder.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_build.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_build.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/exception_filter_win32.cpp 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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_interface_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_interface_local.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/btree/btree_ondisk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/btree/btree_ondisk.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_check_resume_token.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_check_resume_token.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repair_database_and_check_version.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_commitjob.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_commitjob.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/dur_commitjob.cpp:37: src/mongo/db/storage/mmap_v1/dur_commitjob.h: In instantiation of 'void mongo::dur::Already::clear() [with int Prime = 127]': src/mongo/db/storage/mmap_v1/dur_commitjob.cpp:114:25: required from here src/mongo/db/storage/mmap_v1/dur_commitjob.h:101:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::dur::Already<127>' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 101 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/dur_commitjob.h:92:7: note: 'class mongo::dur::Already<127>' declared here 92 | class Already { | ^~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/index_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/index_access_method.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/extensions_callback_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback_noop.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/decompressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/decompressor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/matcher/extensions_callback_noop.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/matcher/extensions_callback_noop.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/matcher/extensions_callback_noop.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_check_invalidate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_check_invalidate.cpp 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/extensions_callback_noop.cpp: In member function 'virtual mongo::StatusWithMatchExpression mongo::ExtensionsCallbackNoop::parseText(mongo::BSONElement) const': src/mongo/db/matcher/extensions_callback_noop.cpp:40:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 40 | StatusWithMatchExpression ExtensionsCallbackNoop::parseText(BSONElement text) const { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback_noop.cpp:41:60: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 41 | auto textParams = extractTextMatchExpressionParams(text); | ^ src/mongo/db/matcher/extensions_callback_noop.cpp: In member function 'virtual mongo::StatusWithMatchExpression mongo::ExtensionsCallbackNoop::parseWhere(mongo::BSONElement) const': src/mongo/db/matcher/extensions_callback_noop.cpp:51:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 51 | StatusWithMatchExpression ExtensionsCallbackNoop::parseWhere(BSONElement where) const { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback_noop.cpp:52:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 52 | auto whereParams = extractWhereMatchExpressionParams(where); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_cache_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/librepair_database_and_check_version.a build/opt/mongo/db/repair_database_and_check_version.o Skipping ranlib for thin archive build/opt/mongo/db/librepair_database_and_check_version.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/util/coding/coder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/coding/coder.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/matcher_type_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/matcher_type_set.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tzrule.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uniset_props.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher_type_set.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher_type_set.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/index/btree_key_generator.h:35, from src/mongo/db/index/btree_access_method.h:35, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 std::pair&}; _Tp = std::pair; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector, std::allocator > >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::updateCutoff() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2116:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2116 | return std::__upper_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2117 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher_type_set.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher_type_set.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_liaison.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_liaison.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 326 | __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 243 | __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:69, from src/mongo/db/concurrency/lock_manager.h:34, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/operation_context.h:39, from src/mongo/db/index/index_access_method.h:40, from src/mongo/db/index/btree_access_method.h:36, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Deque_iterator, const std::pair&, const std::pair*>; _Tp = std::pair; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 441 | deque<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:62, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h: In constructor 'std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, std::_Temporary_buffer<_ForwardIterator, _Tp>::size_type) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h:243:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 243 | _Temporary_buffer<_ForwardIterator, _Tp>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h: In constructor 'std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, std::_Temporary_buffer<_ForwardIterator, _Tp>::size_type) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::move(_II, _II, _OI) [with _II = std::_Deque_iterator, std::pair&, std::pair*>; _OI = std::pair*]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 497 | move(_II __first, _II __last, _OI __result) | ^~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2651 | return _GLIBCXX_MOVE3(__first2, __last2, | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _Distance, _Compare) [with _RandomAccessIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _RandomAccessIterator2 = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2659:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2659 | __merge_sort_loop(_RandomAccessIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2659:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2714:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2714 | std::__merge_sort_loop(__first, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2715 | __step_size, __comp); | ~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = std::pair*; _OI = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:438:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 438 | __copy_move_a2(_II __first, _II __last, _OI __result) | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::__copy_move_backward_a2(_BI1, _BI1, _BI2) [with bool _IsMove = true; _BI1 = std::pair*; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 613 | __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2384:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2384 | __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2395:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2395 | __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2419:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2419 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2425:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2425 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::NoLimitSorter::sort() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::NoLimitSorter::spill() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:67, from src/mongo/db/concurrency/lock_manager.h:34, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/operation_context.h:39, from src/mongo/db/index/index_access_method.h:40, from src/mongo/db/index/btree_access_method.h:36, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In member function 'mongo::sorter::NoLimitSorter::Iterator* mongo::sorter::NoLimitSorter::done() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 1906 | _M_range_initialize(__first, __last, | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::sort() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::spill() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2116:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2116 | return std::__upper_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2117 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/index/btree_key_generator.h:35, from src/mongo/db/index/btree_access_method.h:35, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::sorter::TopKSorter::add(const Key&, const Value&) [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:397:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 397 | std::__make_heap(__first, __last, __cmp); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:320:19: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 320 | std::__pop_heap(__first, __last, __last, __cmp); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::sorter::TopKSorter::Iterator* mongo::sorter::TopKSorter::done() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libservice_liaison.a build/opt/mongo/db/service_liaison.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_liaison.a In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher_type_set.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/refresh_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/refresh_sessions_gen.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/path_internal.cpp src/mongo/db/matcher/matcher_type_set.cpp: In function 'mongo::Status mongo::{anonymous}::parseSingleType(mongo::BSONElement, mongo::StringMap&, mongo::MatcherTypeSet*)': src/mongo/db/matcher/matcher_type_set.cpp:73:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 73 | Status parseSingleType(BSONElement elt, | ^~~~~~~~~~~~~~~ src/mongo/db/matcher/matcher_type_set.cpp:84:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 84 | auto valueAsInt = MatchExpressionParser::parseIntegerElementToInt(elt); | ^ src/mongo/db/matcher/matcher_type_set.cpp: In static member function 'static mongo::StatusWith mongo::MatcherTypeSet::parse(mongo::BSONElement, mongo::StringMap&)': src/mongo/db/matcher/matcher_type_set.cpp:123:28: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 123 | StatusWith MatcherTypeSet::parse(BSONElement elt, | ^~~~~~~~~~~~~~ src/mongo/db/matcher/matcher_type_set.cpp:128:62: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 128 | auto status = parseSingleType(elt, aliasMap, &typeSet); | ^ src/mongo/db/matcher/matcher_type_set.cpp:136:71: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 136 | auto status = parseSingleType(typeArrayElt, aliasMap, &typeSet); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection_config_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection_config_server.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/signed_logical_time.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/create_collection_gen.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsigned_logical_time.a build/opt/mongo/db/signed_logical_time.o Skipping ranlib for thin archive build/opt/mongo/db/libsigned_logical_time.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_buffer_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from build/opt/mongo/db/refresh_sessions_gen.h:14, from build/opt/mongo/db/refresh_sessions_gen.cpp:9: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::LogicalSessionRecord}; _Tp = mongo::LogicalSessionRecord; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::RefreshSessionsCmdFromClusterMember::parseProtected(const mongo::IDLParserErrorContext&, const mongo::BSONObj&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/sync_source_resolver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/sync_source_resolver.cpp /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_consistency_markers_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_cursor_cleanup_job.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/cluster_cursor_cleanup_job.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/message_log_domain.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -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 -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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/thread_safe_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/thread_safe_string.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/progress_meter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/progress_meter.cpp ar rcsTD build/opt/mongo/db/repl/libreplication_consistency_markers_idl.a build/opt/mongo/db/repl/replication_consistency_markers_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_consistency_markers_idl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_snappy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 src/third_party/shim_snappy.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ruleiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ruleiter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/datetime/date_time_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/timelib-2018.01alpha1 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/datetime/date_time_support.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libprogress_meter.a build/opt/mongo/util/progress_meter.o build/opt/mongo/util/thread_safe_string.o Skipping ranlib for thin archive build/opt/mongo/util/libprogress_meter.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/unclean_shutdown.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/unclean_shutdown.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/usearch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/usearch.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/shard_filter.cpp /home/naourr/work/instance-2/output-1/host/bin/python 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_manager_external_state_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state_local.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidiwrt.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 -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 -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/ubidiwrt.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/filter.h:34, from src/mongo/db/exec/shard_filter.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/filter.h:34, from src/mongo/db/exec/shard_filter.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/query/datetime/libdate_time_support.a build/opt/mongo/db/query/datetime/date_time_support.o Skipping ranlib for thin archive build/opt/mongo/db/query/datetime/libdate_time_support.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/d_concurrency.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/d_concurrency.cpp In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/s/shard_key_pattern.h:40, from src/mongo/s/catalog/type_chunk.h:41, from src/mongo/s/chunk.h:33, from src/mongo/s/chunk_manager.h:41, from src/mongo/db/s/collection_metadata.h:34, from src/mongo/db/s/scoped_collection_metadata.h:33, from src/mongo/db/exec/shard_filter.h:34, from src/mongo/db/exec/shard_filter.cpp:35: 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:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/lock_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_state.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/lock_manager.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/global_lock_acquisition_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/global_lock_acquisition_tracker.cpp src/mongo/db/concurrency/lock_state.cpp: In instantiation of 'boost::optional mongo::LockerImpl::getLockerInfo(boost::optional >) const [with bool IsForMMAPV1 = true]': src/mongo/db/concurrency/lock_state.cpp:1153:16: required from here src/mongo/db/concurrency/lock_state.cpp:685:32: warning: redundant move in return statement [-Wredundant-move] 685 | return std::move(lockerInfo); | ^ src/mongo/db/concurrency/lock_state.cpp:685:32: note: remove 'std::move' call src/mongo/db/concurrency/lock_state.cpp: In instantiation of 'boost::optional mongo::LockerImpl::getLockerInfo(boost::optional >) const [with bool IsForMMAPV1 = false]': src/mongo/db/concurrency/lock_state.cpp:1154:16: required from here src/mongo/db/concurrency/lock_state.cpp:685:32: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/concurrency/lock_state.cpp:685:32: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/lock_manager.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::DeadlockDetector::_processNextNode(const mongo::DeadlockDetector::UnprocessedNode&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/concurrency/lock_manager.cpp:1116:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1116 | } | ^ src/mongo/db/concurrency/lock_manager.cpp:1116:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/scripting/bson_template_evaluator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_fmod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Locker::OneLock&}; _Tp = mongo::Locker::OneLock; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/server_status.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1879 | __final_insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::Locker::OneLock; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::LockerImpl::saveLockStateAndUnlock(mongo::Locker::LockSnapshot*) [with bool IsForMMAPV1 = true]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::LockerImpl::getLockerInfo(mongo::Locker::LockerInfo*, boost::optional >) const [with bool IsForMMAPV1 = false]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::LockerImpl::getLockerInfo(mongo::Locker::LockerInfo*, boost::optional >) const [with bool IsForMMAPV1 = true]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::LockerImpl::saveLockStateAndUnlock(mongo::Locker::LockSnapshot*) [with bool IsForMMAPV1 = false]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/concurrency/liblock_manager.a build/opt/mongo/db/concurrency/d_concurrency.o build/opt/mongo/db/concurrency/global_lock_acquisition_tracker.o build/opt/mongo/db/concurrency/lock_manager.o build/opt/mongo/db/concurrency/lock_state.o build/opt/mongo/db/concurrency/lock_stats.o 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/concurrency/liblock_manager.a 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/geo_near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/geo_near.cpp 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:33: src/mongo/db/matcher/schema/expression_internal_schema_fmod.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaFmodMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: warning: redundant move in return statement [-Wredundant-move] 51 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51: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:98:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 98 | BsonTemplateEvaluator::Status BsonTemplateEvaluator::_evalElem(const BSONElement in, | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/scripting/bson_template_evaluator.cpp:107:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 107 | 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:85:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 85 | Status st = _evalElem(e, builder); | ~~~~~~~~~^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/scripting/bson_template_evaluator.h:48, from src/mongo/scripting/bson_template_evaluator.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member 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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/scripting/bson_template_evaluator.h:48, from src/mongo/scripting/bson_template_evaluator.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_options.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/storage_interface_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/storage_interface_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/bson_extract_optime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/bson_extract_optime.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/search.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/search.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/cluster_write.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/store_possible_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/store_possible_cursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 S2CellId&}; _Tp = S2CellId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::GeoHash; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::GeoNear2DStage::DensityEstimator::buildIndexScan(mongo::OperationContext*, mongo::WorkingSet*, mongo::Collection*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::StatusWith mongo::GeoNear2DSphereStage::nextInterval(mongo::OperationContext*, mongo::WorkingSet*, mongo::Collection*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_sources_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/document_sources_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/resume_token.h:38, from build/opt/mongo/db/pipeline/document_sources_gen.h:21, from build/opt/mongo/db/pipeline/document_sources_gen.cpp:9: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/resume_token.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/resume_token.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/resume_token.h:38, from build/opt/mongo/db/pipeline/document_sources_gen.h:21, from build/opt/mongo/db/pipeline/document_sources_gen.cpp:9: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/repl/storage_interface_impl.cpp: In function 'mongo::Status mongo::repl::{anonymous}::insertDocumentsSingleBatch(mongo::OperationContext*, const mongo::NamespaceStringOrUUID&, std::vector::const_iterator, std::vector::const_iterator)': src/mongo/db/repl/storage_interface_impl.cpp:315:8: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 315 | Status insertDocumentsSingleBatch(OperationContext* opCtx, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/repl/storage_interface_impl.cpp:315:8: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 481 | return this->_impl().insertDocuments(opCtx, begin, end, opDebug, enforceQuota, fromMigrate); | ^ src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/repl/storage_interface_impl.cpp: In member function 'virtual mongo::Status mongo::repl::StorageInterfaceImpl::insertDocuments(mongo::OperationContext*, const mongo::NamespaceStringOrUUID&, const std::vector&)': src/mongo/db/repl/storage_interface_impl.cpp:346:43: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 346 | if (insertDocumentsSingleBatch(opCtx, nsOrUUID, docs.cbegin(), docs.cend()).isOK()) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/repl/storage_interface_impl.cpp:346:43: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 src/mongo/db/repl/storage_interface_impl.cpp:359:85: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 359 | auto status = insertDocumentsSingleBatch(opCtx, nsOrUUID, it, it + 1); | ^ src/mongo/db/repl/storage_interface_impl.cpp:359:85: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 src/mongo/db/repl/storage_interface_impl.cpp:359:85: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 359 | auto status = insertDocumentsSingleBatch(opCtx, nsOrUUID, it, it + 1); | ^ src/mongo/db/repl/storage_interface_impl.cpp:359:85: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/s/query/store_possible_cursor.h:33, from src/mongo/s/query/store_possible_cursor.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::StatusWith mongo::storePossibleCursor(mongo::OperationContext*, const mongo::ShardId&, const mongo::HostAndPort&, const mongo::BSONObj&, const mongo::NamespaceString&, mongo::executor::TaskExecutor*, mongo::ClusterCursorManager*, mongo::TailableModeEnum)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_sources_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_sources_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/resume_token.h:38, from src/mongo/db/pipeline/resume_token.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/resume_token.h:38, from src/mongo/db/pipeline/resume_token.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/s/query/libstore_possible_cursor.a build/opt/mongo/s/query/store_possible_cursor.o Skipping ranlib for thin archive build/opt/mongo/s/query/libstore_possible_cursor.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uset_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uset_props.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/clock_source.cpp ar rcsTD build/opt/mongo/db/repl/libstorage_interface_impl.a build/opt/mongo/db/repl/storage_interface_impl.o build/opt/mongo/db/repl/collection_bulk_loader_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libstorage_interface_impl.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/legacy_reply.cpp In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/pipeline/resume_token.h:36, from src/mongo/db/pipeline/resume_token.cpp:33: src/mongo/db/pipeline/resume_token.cpp: In member function 'mongo::ResumeTokenData mongo::ResumeToken::getData() const': src/mongo/db/pipeline/resume_token.cpp:221:58: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 221 | result.uuid = uassertStatusOK(UUID::parse(i.next())); | ~~~~~~~~~~~^~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/pipeline/resume_token.cpp:281:54: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 281 | result.uuid = uassertStatusOK(UUID::parse(i.next())); | ~~~~~~~~~~~^~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/standardplural.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/standardplural.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/i18n/ulocdata.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 -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 -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/ulocdata.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/compress.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/compress.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/libcompress.a build/opt/mongo/db/storage/mmap_v1/compress.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libcompress.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/strcasestr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/strcasestr.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/role_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/role_name.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_sources_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfrs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/nfrs.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uinvchar.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 -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 -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/uinvchar.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ubrk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ubrk.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/scripting/engine.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/scripting/utils.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/dbdirectclient_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/scripting/dbdirectclient_factory.cpp ar rcsTD build/opt/mongo/db/pipeline/libdocument_sources_idl.a build/opt/mongo/db/pipeline/document_sources_gen.o build/opt/mongo/db/pipeline/resume_token.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libdocument_sources_idl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/deadline_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/scripting/deadline_monitor.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collation_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collation_spec.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/queued_data_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/queued_data_stage.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/split_vector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/split_vector.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_noop.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/sock.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/scripting/libscripting_common.a build/opt/mongo/scripting/deadline_monitor.o build/opt/mongo/scripting/dbdirectclient_factory.o build/opt/mongo/scripting/engine.o build/opt/mongo/scripting/utils.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting_common.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servls.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/servls.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_project.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_project.cpp 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:46:21: warning: redundant move in return statement [-Wredundant-move] 46 | return std::move(clonedQuery); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/fts/fts_query_noop.cpp:46:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/server_write_concern_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/server_write_concern_metrics.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/astro.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/astro.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/cluster_identity_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/cluster_identity_loader.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/document_source_project.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceProject::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_project.cpp:61:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 61 | intrusive_ptr DocumentSourceProject::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/pipeline/document_source_project.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_project(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_project.cpp:46:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 46 | REGISTER_DOCUMENT_SOURCE(project, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/haystack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/haystack.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/router_stage_limit.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session_killer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/session_killer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/dist_lock_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_catalog_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.c In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrecog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/csrecog.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/applier_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/applier_helpers.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatareader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationdatareader.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucol_swp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucol_swp.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/shard_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/shard_collection_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/engine_none.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/scripting/engine_none.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libindex_create.a build/opt/mongo/db/catalog/index_create.o In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_create.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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbtz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbtz.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/drop_pending_collection_reaper.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/initial_syncer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/initial_syncer.cpp ar rcsTD build/opt/mongo/scripting/libscripting_none.a build/opt/mongo/scripting/engine_none.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting_none.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_noinit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_noinit.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/write_concern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/write_concern.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/command_request.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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_recovery.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libdrop_pending_collection_reaper.a build/opt/mongo/db/repl/drop_pending_collection_reaper.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdrop_pending_collection_reaper.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/database_holder_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/database_holder_impl.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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ttl_collection_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ttl_collection_cache.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/start_chunk_clone_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/start_chunk_clone_request.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_session_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_session_id.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/collection_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/collection_scan.cpp ar rcsTD build/opt/mongo/db/s/libmigration_types.a build/opt/mongo/db/s/migration_session_id.o build/opt/mongo/db/s/start_chunk_clone_request.o Skipping ranlib for thin archive build/opt/mongo/db/s/libmigration_types.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rollback_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/rollback_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/collection_scan.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/collection_scan.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/collection_scan.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/collection_scan.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libinitial_syncer.a build/opt/mongo/db/repl/initial_syncer.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libinitial_syncer.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/split_chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/split_chunk.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/dbclient.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/dbclient.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/collection_scan.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librollback_idl.a build/opt/mongo/db/repl/rollback_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_idl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/durable_mapped_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/durable_mapped_file.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/collection_scan.cpp:33: 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:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/path.h: In member function 'mongo::PlanStage::StageState mongo::CollectionScan::returnIfMatches(mongo::WorkingSetMember*, mongo::WorkingSetID, mongo::WorkingSetID*)': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/pull_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/pull_node.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_options.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/pull_node.h:33, from src/mongo/db/update/pull_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/pull_node.h:33, from src/mongo/db/update/pull_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/libserver_options_core.a build/opt/mongo/db/server_options.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_options_core.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/namespace_uuid_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/namespace_uuid_cache.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:33, from src/mongo/db/update/pull_node.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:33, from src/mongo/db/update/pull_node.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/uuid_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/uuid_catalog.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/copyable_match_expression.h:33, from src/mongo/db/update/pull_node.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_aggregation_projection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/update/pull_node.cpp: In member function 'virtual mongo::Status mongo::PullNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/pull_node.cpp:131:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 131 | Status PullNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~~ src/mongo/db/update/pull_node.cpp:137:56: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 137 | modExpr.embeddedObject().firstElement())) { | ^ 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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/strmatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/strmatch.cpp ar rcsTD build/opt/mongo/db/libserveronly.a build/opt/mongo/db/instance.o Skipping ranlib for thin archive build/opt/mongo/db/libserveronly.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_tags.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_tags.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.c /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.c 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationbuilder.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_parameters.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/catalog/uuid_catalog.h: In member function 'virtual void mongo::UUIDCatalogObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/catalog/uuid_catalog.h:53:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 53 | void onInserts(OperationContext* opCtx, | ^~~~~~~~~ src/mongo/db/catalog/uuid_catalog.h:53:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/private/ssl_expiration.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_stream.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_manager_openssl.cpp ar rcsTD build/opt/mongo/db/catalog/libuuid_catalog.a build/opt/mongo/db/catalog/namespace_uuid_cache.o build/opt/mongo/db/catalog/uuid_catalog.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libuuid_catalog.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_migration_critical_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_migration_critical_section.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/usc_impl.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 -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 -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/usc_impl.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/cluster_aggregation_planner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/cluster_aggregation_planner.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/index_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/index_spec.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/dbclientcursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/dbclientcursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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 Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_manager.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationtailoring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationtailoring.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/multi_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/multi_iterator.cpp src/mongo/db/pipeline/cluster_aggregation_planner.cpp: In function 'void mongo::cluster_aggregation_planner::{anonymous}::limitFieldsSentFromShardsToMerger(mongo::Pipeline*, mongo::Pipeline*)': src/mongo/db/pipeline/cluster_aggregation_planner.cpp:136:93: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | BSON("$project" << mergeDeps.toProjection()).firstElement(), shardPipe->getContext()); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/stale_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/stale_exception.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/eval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/eval.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ulistformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ulistformatter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/database_holder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/database_holder.cpp ar rcsTD build/opt/mongo/client/libclientdriver_minimal.a build/opt/mongo/client/dbclient.o build/opt/mongo/client/dbclientcursor.o build/opt/mongo/client/index_spec.o Skipping ranlib for thin archive build/opt/mongo/client/libclientdriver_minimal.a ar rcsTD build/opt/mongo/util/libicu_init.a build/opt/mongo/util/icu_init.o Skipping ranlib for thin archive build/opt/mongo/util/libicu_init.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/format.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/oplog_hack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/oplog_hack.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_tree.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_tree.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: 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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/liboplog_hack.a build/opt/mongo/db/storage/oplog_hack.o Skipping ranlib for thin archive build/opt/mongo/db/storage/liboplog_hack.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repair_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repair_database.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_tree.h:35, from src/mongo/db/matcher/expression_tree.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_tree.h:35, from src/mongo/db/matcher/expression_tree.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_tree.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_tree.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.cpp: In lambda function: src/mongo/db/matcher/expression_tree.cpp:157:33: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.cpp:157:33: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/cloner.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/legacy_reply_builder.cpp ar rcsTD build/opt/mongo/transport/libtransport_layer.a build/opt/mongo/transport/transport_layer_asio.o Skipping ranlib for thin archive build/opt/mongo/transport/libtransport_layer.a /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/catalog/health_log_gen.h --output build/opt/mongo/db/catalog/health_log_gen.cpp src/mongo/db/catalog/health_log.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/health_log_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/catalog/health_log_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/txn_cmds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/txn_cmds.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/global_initializer_registerer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/abstract_oplog_fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/abstract_oplog_fetcher.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/file_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/file_writer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rollback_source_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rollback_source_impl.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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcloner.a build/opt/mongo/db/cloner.o Skipping ranlib for thin archive build/opt/mongo/db/libcloner.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/shim_icu.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/filteredbrk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/filteredbrk.cpp /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/dbcheck_gen.h --output build/opt/mongo/db/repl/dbcheck_gen.cpp src/mongo/db/repl/dbcheck.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/dbcheck_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/dbcheck_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/egress_metadata_hook_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/egress_metadata_hook_list.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/cwchar.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 -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 -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/cwchar.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/btree_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/btree_key_generator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/expression_keys_private.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/expression_keys_private.cpp ar rcsTD build/opt/mongo/db/repl/libabstract_oplog_fetcher.a build/opt/mongo/db/repl/abstract_oplog_fetcher.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libabstract_oplog_fetcher.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/timer_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/timer_stats.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_object_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_object_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/base/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/stringprintf.cc In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_object_node.h:38, from src/mongo/db/update/update_object_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_object_node.h:38, from src/mongo/db/update/update_object_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/base/int128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/int128.cc src/mongo/db/update/update_object_node.cpp: In static member function 'static std::unique_ptr mongo::UpdateObjectNode::createUpdateNodeByMerging(const mongo::UpdateObjectNode&, const mongo::UpdateObjectNode&, mongo::FieldRef*)': src/mongo/db/update/update_object_node.cpp:349:21: warning: redundant move in return statement [-Wredundant-move] 349 | return std::move(mergedNode); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/update/update_object_node.cpp:349:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/base/logging.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/logging.cc /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/summation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/summation.cpp ar rcsTD build/opt/mongo/util/libsummation.a build/opt/mongo/util/summation.o Skipping ranlib for thin archive build/opt/mongo/util/libsummation.a ar rcsTD build/opt/third_party/s2/base/libbase_s2.a build/opt/third_party/s2/base/int128.o build/opt/third_party/s2/base/logging.o build/opt/third_party/s2/base/stringprintf.o build/opt/third_party/s2/base/strtoint.o Skipping ranlib for thin archive build/opt/third_party/s2/base/libbase_s2.a /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 ar rcsTD build/opt/mongo/db/auth/libauth_impl_internal_local.a build/opt/mongo/db/auth/authz_manager_external_state_local.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_impl_internal_local.a src/mongo/db/update/update_object_node.cpp: In static member function 'static mongo::StatusWith mongo::UpdateObjectNode::parseAndMerge(mongo::UpdateObjectNode*, mongo::modifiertable::ModifierType, mongo::BSONElement, const boost::intrusive_ptr&, const std::map >&, std::set >&)': src/mongo/db/update/update_object_node.cpp:188:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 188 | StatusWith UpdateObjectNode::parseAndMerge( | ^~~~~~~~~~~~~~~~ src/mongo/db/update/update_object_node.cpp:209:53: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 209 | foundIdentifiers); | ^ src/mongo/db/update/update_object_node.cpp:209:53: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/update/update_object_node.cpp:256:24: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 256 | status = leaf->init(modExpr, expCtx); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/namespace_serializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/namespace_serializer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/processinfo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/processinfo.cpp ar rcsTD build/opt/mongo/db/index/libkey_generator.a build/opt/mongo/db/index/btree_key_generator.o build/opt/mongo/db/index/expression_keys_private.o build/opt/mongo/db/index/sort_key_generator.o Skipping ranlib for thin archive build/opt/mongo/db/index/libkey_generator.a /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/elapsed_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/elapsed_tracker.cpp /home/naourr/work/instance-2/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 -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 -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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/periodic_runner_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/periodic_runner_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/end_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/commands/end_sessions_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/normlzr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/normlzr.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/op_observer_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/op_observer_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucln_in.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucln_in.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -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 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/icu.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/fts_access_method.cpp ar rcsTD build/opt/mongo/util/libicu.a build/opt/mongo/util/icu.o Skipping ranlib for thin archive build/opt/mongo/util/libicu.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/winutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/winutil.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_buffer_blocking_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_blocking_queue.cpp src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/expression_params.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/expression_params.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/periodic_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/periodic_runner.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_unique_items.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/option_section.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_scram_server_conversation.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:33: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaUniqueItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:73:21: warning: redundant move in return statement [-Wredundant-move] 73 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:73:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:33: src/mongo/bson/unordered_fields_bsonelement_comparator.h: In member function 'virtual void mongo::UnorderedFieldsBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/unordered_fields_bsonelement_comparator.h:53:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, toHash, ComparisonRules::kIgnoreFieldOrder, kStringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_plain_server_conversation.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/op_observer.h:36, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/op_observer.h:36, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::repl::OpTime mongo::{anonymous}::logOperation(mongo::OperationContext*, const char*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, const mongo::BSONObj&, const mongo::BSONObj*, bool, mongo::Date_t, const mongo::OperationSessionInfo&, mongo::StmtId, const mongo::repl::OplogLink&, const mongo::OplogSlot&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/op_observer.h:36, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::repl::OpTime; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/util/options_parser/option_description.h:33, from src/mongo/util/options_parser/option_section.h:32, from src/mongo/util/options_parser/option_section.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/util/options_parser/option_description.h:33, from src/mongo/util/options_parser/option_section.h:32, from src/mongo/util/options_parser/option_section.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::optionenvironment::OptionSection::getAllOptions(std::vector*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/op_observer_impl.cpp: In member function 'virtual void mongo::OpObserverImpl::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/op_observer_impl.cpp:365:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 365 | void OpObserverImpl::onInserts(OperationContext* opCtx, | ^~~~~~~~~~~~~~ src/mongo/db/op_observer_impl.cpp:365:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/op_observer_impl.cpp:395:31: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 395 | repl::logInsertOps(opCtx, nss, uuid, session, first, last, fromMigrate, lastWriteDate); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/op_observer_impl.cpp:395:31: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/op_observer.h:36, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: 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:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_mechanism_registry.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/scripting_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/scripting/scripting_server.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/util/math/mathutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/math/mathutil.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uregex.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/parse_zoneinfo.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_zoneinfo.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/dow.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/tm2unixtime.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/tm2unixtime.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/timelib.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/timelib.c In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/parse_iso_intervals.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_iso_intervals.c In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/parse_tz.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_tz.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/parse_date.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_date.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/unixtime2tm.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 -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/unixtime2tm.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/dbclient_connection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/dbclient_connection.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/audit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/audit.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/simple_string_data_comparator.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_push.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_push.cpp 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/stringpiece.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/stringpiece.cpp ar rcsTD build/opt/mongo/db/index/libindex_descriptor.a build/opt/mongo/db/index/index_descriptor.o Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_descriptor.a 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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/sort.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_push.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_push.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/accumulator.h:37, from src/mongo/db/pipeline/accumulator_push.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value&}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/accumulator.h:37, from src/mongo/db/pipeline/accumulator_push.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual void mongo::AccumulatorPush::processInternal(const mongo::Value&, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_cursor.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/dbcheck.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/dbcheck.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/exec/sort.h:34, from src/mongo/db/exec/sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::SortStage::SortableDataItem&}; _Tp = mongo::SortStage::SortableDataItem; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/exec/sort.h:34, from src/mongo/db/exec/sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::SortStage::addToBuffer(const mongo::SortStage::SortableDataItem&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/db/jsobj.h:48, from src/mongo/db/exec/plan_stats.h:40, from src/mongo/db/exec/plan_stage.h:36, from src/mongo/db/exec/sort.h:36, from src/mongo/db/exec/sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_comp_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1879 | __final_insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/db/jsobj.h:48, from src/mongo/db/exec/plan_stats.h:40, from src/mongo/db/exec/plan_stage.h:36, from src/mongo/db/exec/sort.h:36, from src/mongo/db/exec/sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::SortStage::SortableDataItem; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 326 | __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/db/jsobj.h:48, from src/mongo/db/exec/plan_stats.h:40, from src/mongo/db/exec/plan_stage.h:36, from src/mongo/db/exec/sort.h:36, from src/mongo/db/exec/sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1671:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1671 | std::__make_heap(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::SortStage::sortBuffer()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_cursor.cpp: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceCursor::getNext()': src/mongo/db/pipeline/document_source_cursor.cpp:69:21: warning: redundant move in return statement [-Wredundant-move] 69 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_cursor.cpp:69:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/subplan.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/mutable/element.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/mutable/element.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/cannot_implicitly_create_collection_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/cannot_implicitly_create_collection_info.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/commands/dbcheck.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::{anonymous}::DbCheckCollectionInfo&}; _Tp = mongo::{anonymous}::DbCheckCollectionInfo; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/commands/dbcheck.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual bool mongo::{anonymous}::DbCheckCmd::run(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/digitaffixesandpadding.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gregoimp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/gregoimp.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_stemmer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include src/third_party/shim_stemmer.cpp ar rcsTD build/opt/third_party/libshim_stemmer.a build/opt/third_party/shim_stemmer.o Skipping ranlib for thin archive build/opt/third_party/libshim_stemmer.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/storage_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/storage_interface.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_shard_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_shard_collection_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_clock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_clock.cpp src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/third_party/timelib-2018.01alpha1/libtimelib.a build/opt/third_party/timelib-2018.01alpha1/astro.o build/opt/third_party/timelib-2018.01alpha1/dow.o build/opt/third_party/timelib-2018.01alpha1/interval.o build/opt/third_party/timelib-2018.01alpha1/parse_date.o build/opt/third_party/timelib-2018.01alpha1/parse_iso_intervals.o build/opt/third_party/timelib-2018.01alpha1/parse_tz.o build/opt/third_party/timelib-2018.01alpha1/parse_zoneinfo.o build/opt/third_party/timelib-2018.01alpha1/timelib.o build/opt/third_party/timelib-2018.01alpha1/tm2unixtime.o build/opt/third_party/timelib-2018.01alpha1/unixtime2tm.o Skipping ranlib for thin archive build/opt/third_party/timelib-2018.01alpha1/libtimelib.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzgnames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tzgnames.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/cleanup_orphaned_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/cleanup_orphaned_cmd.cpp ar rcsTD build/opt/mongo/db/liblogical_clock.a build/opt/mongo/db/logical_clock.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_clock.a ar rcsTD build/opt/mongo/util/libwinutil.a build/opt/mongo/util/winutil.o Skipping ranlib for thin archive build/opt/mongo/util/libwinutil.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/startup_option_init.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaRootDocEqMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:77:21: warning: redundant move in return statement [-Wredundant-move] 77 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:77:21: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libperiodic_runner.a build/opt/mongo/util/periodic_runner.o Skipping ranlib for thin archive build/opt/mongo/util/libperiodic_runner.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/create_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/create_collection.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_where_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where_noop.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where_noop.h:33, from src/mongo/db/matcher/expression_where_noop.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where_noop.h:33, from src/mongo/db/matcher/expression_where_noop.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_where_noop.cpp: In member function 'virtual std::unique_ptr mongo::WhereNoOpMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_where_noop.cpp:57:21: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_where_noop.cpp:57:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonelement_comparator_interface.h:33, from src/mongo/bson/simple_bsonelement_comparator.h:33, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:35: src/mongo/db/s/config/configsvr_shard_collection_command.cpp: In function 'boost::optional mongo::{anonymous}::getUUIDFromPrimaryShard(mongo::OperationContext*, const mongo::NamespaceString&, const std::shared_ptr&)': src/mongo/db/s/config/configsvr_shard_collection_command.cpp:585:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 585 | return uassertStatusOK(UUID::parse(collectionInfo["uuid"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ ar rcsTD build/opt/mongo/util/libperiodic_runner_impl.a build/opt/mongo/util/periodic_runner_impl.o Skipping ranlib for thin archive build/opt/mongo/util/libperiodic_runner_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/multi_plan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/multi_plan.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/mongo_uri.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/mongo_uri.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/titletrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/titletrn.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/fsync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/fsync.cpp In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/create_collection.cpp:35: src/mongo/db/catalog/create_collection.cpp: In lambda function: src/mongo/db/catalog/create_collection.cpp:172:56: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 172 | auto uuid = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/idl/idl_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/idl/idl_parser.cpp ar rcsTD build/opt/mongo/idl/libidl_parser.a build/opt/mongo/idl/idl_parser.o Skipping ranlib for thin archive build/opt/mongo/idl/libidl_parser.a In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/compare_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/compare_node.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/mongod_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/db/mongod_options_init.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_index_format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_index_format.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/compare_node.h:33, from src/mongo/db/update/compare_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/compare_node.h:33, from src/mongo/db/update/compare_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/commands/libmongod_fsync.a build/opt/mongo/db/commands/fsync.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmongod_fsync.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/numsys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/numsys.cpp /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/aggregation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/aggregation.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/tailable_mode_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/query/tailable_mode_gen.cpp src/mongo/db/update/compare_node.cpp: In member function 'virtual mongo::Status mongo::CompareNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/compare_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status CompareNode::init(BSONElement modExpr, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_add_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_add_fields.cpp ar rcsTD build/opt/mongo/libmongod_options_init.a build/opt/mongo/db/mongod_options_init.o Skipping ranlib for thin archive build/opt/mongo/libmongod_options_init.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/vote_requester.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_shard_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/vote_requester.h:34, from src/mongo/db/repl/vote_requester.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RemoteCommandRequest}; _Tp = mongo::executor::RemoteCommandRequest; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual std::vector mongo::repl::VoteRequester::Algorithm::getRequests() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_chunk_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_database_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp src/mongo/db/pipeline/document_source_add_fields.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceAddFields::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_add_fields.cpp:63:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 63 | intrusive_ptr DocumentSourceAddFields::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/pipeline/document_source_add_fields.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_addFields(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_add_fields.cpp:46:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 46 | REGISTER_DOCUMENT_SOURCE(addFields, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_collection_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:35, from src/mongo/db/s/config/sharding_catalog_manager.h:35, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ChunkType&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ChunkType}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/initial_split_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/initial_split_policy.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:35, from src/mongo/db/s/config/sharding_catalog_manager.h:35, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::ShardingCatalogManager::commitChunkMerge(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::OID&, const std::vector >&, const string&, const boost::optional&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:35, from src/mongo/db/s/config/sharding_catalog_manager.h:35, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::Status mongo::ShardingCatalogManager::commitChunkSplit(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::OID&, const mongo::ChunkRange&, const std::vector >&, const string&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/concurrency/lock_manager.h:38, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/concurrency/d_concurrency.h:35, from src/mongo/db/s/config/sharding_catalog_manager.h:35, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:35: src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp: In function 'boost::optional mongo::{anonymous}::checkCollectionOptions(mongo::OperationContext*, mongo::Shard*, const mongo::NamespaceString&, mongo::CollectionOptions)': src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:128:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 128 | return uassertStatusOK(UUID::parse(collectionInfo["uuid"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_destination_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_destination_manager.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_sharding_runtime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_runtime.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_source_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_source_manager.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/s/config/initial_split_policy.h:33, from src/mongo/db/s/config/initial_split_policy.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::NamespaceString&, mongo::ChunkRange, mongo::ChunkVersion&, const mongo::ShardId&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'void mongo::{anonymous}::appendChunk(const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::BSONObj&, mongo::ChunkVersion*, const mongo::Timestamp&, const mongo::ShardId&, std::vector*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/s/libsharding_catalog_manager.a build/opt/mongo/db/s/config/initial_split_policy.o build/opt/mongo/db/s/config/namespace_serializer.o build/opt/mongo/db/s/config/sharding_catalog_manager_chunk_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager_collection_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager_database_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager_shard_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager_zone_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_catalog_manager.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/session_catalog_migration_destination.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/scoped_operation_completion_sharding_actions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_metadata_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_metadata_util.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_initialization_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_initialization_mongod.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_server_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_server_catalog_cache_loader.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/active_migrations_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/active_migrations_registry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/s/shard_metadata_util.h:34, from src/mongo/db/s/shard_metadata_util.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ChunkType}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::StatusWith > mongo::shardmetadatautil::readShardChunks(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::BSONObj&, boost::optional, const mongo::OID&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:184:5: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 184 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:184:5: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:65, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/base/status_with.h:39, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ChunkType*; bool _TrivialValueTypes = false]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:76:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 76 | __uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:76:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h: In member function 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:134:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 131 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 134 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:65, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/base/status_with.h:39, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:134:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 131 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 134 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:134:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 131 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 134 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::CollectionAndChangedChunks mongo::ShardServerCatalogCacheLoader::CollAndChunkTaskList::getEnqueuedMetadataForTerm(long long int) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'std::pair mongo::ShardServerCatalogCacheLoader::_getEnqueuedMetadata(const mongo::NamespaceString&, const mongo::ChunkVersion&, long long int)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1458:71: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1458 | return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); | ^ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::StatusWith mongo::ShardServerCatalogCacheLoader::_getLoaderMetadata(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::ChunkVersion&, long long int)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1458:71: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1458 | return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); | ^ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_statistics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_statistics.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_server_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_server_op_observer.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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/read_only_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/read_only_catalog_cache_loader.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/chunk_move_write_concern_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/chunk_move_write_concern_options.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config_server_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config_server_op_observer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_state_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_state_recovery.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/set:60, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RecordId; _Val = mongo::RecordId; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2518 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'mongo::Status mongo::MigrationChunkClonerSourceLegacy::nextCloneBatch(mongo::OperationContext*, mongo::Collection*, mongo::BSONArrayBuilder*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1248:2: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1248 | _M_erase_aux(__first, __last); | ^~~~~~~~~~~~ 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const _Key&) [with _Key = mongo::RecordId; _Val = mongo::RecordId; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2536:7: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2536 | _M_erase_aux(__p.first, __p.second); | ^~~~~~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/s/shard_server_op_observer.cpp: In member function 'virtual void mongo::ShardServerOpObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/s/shard_server_op_observer.cpp:204:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 204 | void ShardServerOpObserver::onInserts(OperationContext* opCtx, | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/s/shard_server_op_observer.cpp:204:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_config_optime_gossip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_config_optime_gossip.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/metadata_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/metadata_manager.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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/s/config_server_op_observer.h: In member function 'virtual void mongo::ConfigServerOpObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/s/config_server_op_observer.h:55:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 55 | void onInserts(OperationContext* opCtx, | ^~~~~~~~~ src/mongo/db/s/config_server_op_observer.h:55:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/implicit_create_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/implicit_create_collection.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_identity_rollback_notifier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_identity_rollback_notifier.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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/active_move_primaries_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/active_move_primaries_registry.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/chunk_splitter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/chunk_splitter.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/session_catalog_migration_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/session_catalog_migration_source.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/active_shard_collection_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/active_shard_collection_registry.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/move_timing_helper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/move_timing_helper.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_sharding_state_factory_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_state_factory_shard.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/client/dbclientinterface.h:36, from src/mongo/client/dbclientcursor.h:38, from src/mongo/db/s/session_catalog_migration_source.h:37, from src/mongo/db/s/session_catalog_migration_source.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::OplogEntry&}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_range_deleter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_range_deleter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_filtering_metadata_refresh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_filtering_metadata_refresh.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/client/connection_string.h:36, from src/mongo/client/dbclientinterface.h:36, from src/mongo/client/dbclientcursor.h:38, from src/mongo/db/s/session_catalog_migration_source.h:37, from src/mongo/db/s/session_catalog_migration_source.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::SessionCatalogMigrationSource::_handleWriteHistory(mongo::WithLock, mongo::OperationContext*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/move_primary_source_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/move_primary_source_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/namespace_metadata_change_notifications.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/namespace_metadata_change_notifications.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/projection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/projection_exec.h:35, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/projection_exec.h:35, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/chunk_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/chunk_manager.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/chunk.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/chunk_manager.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/chunk_manager.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/chunk_manager.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/s/chunk_manager.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/data_type_string_data.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/btree/btree_logic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/btree/btree_logic.cpp ar rcsTD build/opt/mongo/db/s/libsharding_runtime_d.a build/opt/mongo/db/s/active_migrations_registry.o build/opt/mongo/db/s/active_move_primaries_registry.o build/opt/mongo/db/s/active_shard_collection_registry.o build/opt/mongo/db/s/chunk_move_write_concern_options.o build/opt/mongo/db/s/chunk_splitter.o build/opt/mongo/db/s/collection_range_deleter.o build/opt/mongo/db/s/collection_sharding_runtime.o build/opt/mongo/db/s/collection_sharding_state_factory_shard.o build/opt/mongo/db/s/config_server_op_observer.o build/opt/mongo/db/s/implicit_create_collection.o build/opt/mongo/db/s/metadata_manager.o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy.o build/opt/mongo/db/s/migration_chunk_cloner_source.o build/opt/mongo/db/s/migration_destination_manager.o build/opt/mongo/db/s/migration_source_manager.o build/opt/mongo/db/s/migration_util.o build/opt/mongo/db/s/move_primary_source_manager.o build/opt/mongo/db/s/move_timing_helper.o build/opt/mongo/db/s/namespace_metadata_change_notifications.o build/opt/mongo/db/s/read_only_catalog_cache_loader.o build/opt/mongo/db/s/scoped_operation_completion_sharding_actions.o build/opt/mongo/db/s/session_catalog_migration_destination.o build/opt/mongo/db/s/session_catalog_migration_source.o build/opt/mongo/db/s/shard_filtering_metadata_refresh.o build/opt/mongo/db/s/shard_identity_rollback_notifier.o build/opt/mongo/db/s/shard_metadata_util.o build/opt/mongo/db/s/shard_server_catalog_cache_loader.o build/opt/mongo/db/s/shard_server_op_observer.o build/opt/mongo/db/s/sharding_config_optime_gossip.o build/opt/mongo/db/s/sharding_initialization_mongod.o build/opt/mongo/db/s/sharding_state_recovery.o build/opt/mongo/db/s/sharding_statistics.o build/opt/mongo/db/s/split_chunk.o build/opt/mongo/db/s/split_vector.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_runtime_d.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servnotf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/servnotf.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sample.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sample.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/rename_collection.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/s/chunk_manager.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/db/client.h:43, from src/mongo/db/storage/mmap_v1/btree/btree_logic.cpp:38: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/s/libsharding_routing_table.a build/opt/mongo/s/chunk.o build/opt/mongo/s/chunk_manager.o build/opt/mongo/s/shard_key_pattern.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_routing_table.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/drop_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/drop_collection.cpp src/mongo/db/pipeline/document_source_sample.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceSample::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_sample.cpp:95:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 95 | intrusive_ptr DocumentSourceSample::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/pipeline/document_source_sample.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_sample(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sample.cpp:50:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 50 | REGISTER_DOCUMENT_SOURCE(sample, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/drop_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/drop_database.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/capped_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/capped_utils.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/catalog/rename_collection.h:32, from src/mongo/db/catalog/rename_collection.cpp:35: 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:71:44: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 71 | auto uuid = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/catalog/rename_collection.cpp:592:49: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 592 | targetUUID = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/catalog/rename_collection.cpp:597:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 597 | auto uuid = uassertStatusOK(UUID::parse(cmd["dropTarget"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/drop_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/drop_indexes.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/security_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/security_key.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_databases_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/commands/list_databases_gen.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/expression.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libsecurity_key.a build/opt/mongo/db/auth/security_key.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsecurity_key.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fast_clock_source_factory.cpp 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:4946:21: warning: redundant move in return statement [-Wredundant-move] 4946 | return std::move(newZip); | ~~~~~~~~~^~~~~~~~ src/mongo/db/pipeline/expression.cpp:4946:21: note: remove 'std::move' call 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:5592:21: warning: redundant move in return statement [-Wredundant-move] 5592 | return std::move(newConvert); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5592:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/snapshot_management.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/snapshot_management.cpp ar rcsTD build/opt/mongo/db/catalog/libcatalog_helpers.a build/opt/mongo/db/catalog/capped_utils.o build/opt/mongo/db/catalog/coll_mod.o build/opt/mongo/db/catalog/create_collection.o build/opt/mongo/db/catalog/drop_collection.o build/opt/mongo/db/catalog/drop_database.o build/opt/mongo/db/catalog/drop_indexes.o build/opt/mongo/db/catalog/rename_collection.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcatalog_helpers.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/profile_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/commands/profile_gen.cpp ar rcsTD build/opt/mongo/db/commands/liblist_databases_command.a build/opt/mongo/db/commands/list_databases_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/liblist_databases_command.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/profile_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/profile_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/expression.h:36, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_zlib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 src/third_party/shim_zlib.cpp ar rcsTD build/opt/third_party/libshim_zlib.a build/opt/third_party/shim_zlib.o Skipping ranlib for thin archive build/opt/third_party/libshim_zlib.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/shard_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/shard_id.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/make_string_vector.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value&}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Value mongo::ExpressionFieldPath::evaluatePathArray(size_t, const mongo::Value&) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionCoerceToBool::serialize(bool) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ 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:946:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 946 | intrusive_ptr ExpressionConstant::parse( | ^~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/restart_catalog_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/restart_catalog_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/network_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/network_interface.cpp ar rcsTD build/opt/mongo/db/commands/libprofile_common.a build/opt/mongo/db/commands/profile_common.o build/opt/mongo/db/commands/profile_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libprofile_common.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/big_polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/big_polygon.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionMap::evaluate(const mongo::Document&, mongo::Variables*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionFilter::evaluate(const mongo::Document&, mongo::Variables*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/geo/big_polygon.h:33, from src/mongo/db/geo/big_polygon.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 Vector3&}; _Tp = Vector3; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/geo/big_polygon.h:33, from src/mongo/db/geo/big_polygon.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'const S2Polyline& mongo::BigSimplePolygon::GetLineBorder() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/hash.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/shapes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/shapes.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionZip::evaluate(const mongo::Document&, mongo::Variables*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionConcatArrays::evaluate(const mongo::Document&, mongo::Variables*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/db/pipeline/expression.h:37, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = const mongo::Value&; _NodeGen = std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::_Alloc_node; _Key = mongo::Value; _Val = mongo::Value; _KeyOfValue = std::_Identity; _Compare = mongo::ValueComparator::LessThan; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2248:7: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2248 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In function 'mongo::ValueSet mongo::{anonymous}::arrayToSet(const mongo::Value&, const mongo::ValueComparator&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual mongo::Value mongo::ExpressionSetEquals::evaluate(const mongo::Document&, mongo::Variables*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual mongo::Value mongo::ExpressionSetIntersection::evaluate(const mongo::Document&, mongo::Variables*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual mongo::Value mongo::ExpressionSetUnion::evaluate(const mongo::Document&, mongo::Variables*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionSetDifference::evaluate(const mongo::Document&, mongo::Variables*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/geo/hash.h:33, from src/mongo/db/geo/hash.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::GeoHash}; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/geo/hash.h:33, from src/mongo/db/geo/hash.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::GeoHash::appendVertexNeighbors(unsigned int, std::vector*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/shapes.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::Point; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/shapes.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::Polygon::init(const std::vector&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/r2_region_coverer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/r2_region_coverer.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/version_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call 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:2552:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2552 | intrusive_ptr ExpressionMeta::parse( | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/resize_oplog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/resize_oplog.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'void mongo::{anonymous}::getDifferenceInternal(mongo::GeoHash, const mongo::R2CellUnion&, std::vector*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::R2RegionCoverer::addCandidate(mongo::R2RegionCoverer::Candidate*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/geo/r2_region_coverer.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/geo/r2_region_coverer.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::GeoHash; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/geo/r2_region_coverer.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'bool mongo::R2CellUnion::normalize()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::R2CellUnion::add(const std::vector&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 ar rcsTD build/opt/mongo/db/geo/libgeometry.a build/opt/mongo/db/geo/hash.o build/opt/mongo/db/geo/shapes.o build/opt/mongo/db/geo/big_polygon.o build/opt/mongo/db/geo/r2_region_coverer.o Skipping ranlib for thin archive build/opt/mongo/db/geo/libgeometry.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvmbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucnvmbcs.cpp 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:1969:57: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 1969 | expressions.emplace_back(fieldName, 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:179:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 179 | intrusive_ptr Expression::parseOperand( | ^~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp:193:66: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 193 | 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:163:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 163 | Expression::ExpressionVector ExpressionNary::parseArguments( | ^~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:170:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 170 | out.push_back(Expression::parseOperand(expCtx, elem, vps)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:173:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 173 | 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::ExpressionAdd]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:774:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 774 | intrusive_ptr ExpressionCompare::parse( | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:780:65: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 780 | 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:761:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 761 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:5495:73: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 5495 | auto operands = ExpressionNary::parseArguments(expCtx, elem, 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:1024:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1024 | intrusive_ptr ExpressionDateFromParts::parse( | ^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1092:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1092 | yearElem ? parseOperand(expCtx, yearElem, vps) : nullptr, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1093:19: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1093 | monthElem ? parseOperand(expCtx, monthElem, vps) : nullptr, | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1094:17: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1094 | dayElem ? parseOperand(expCtx, dayElem, vps) : nullptr, | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1095:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1095 | hourElem ? parseOperand(expCtx, hourElem, vps) : nullptr, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1096:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1096 | minuteElem ? parseOperand(expCtx, minuteElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1097:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1097 | secondElem ? parseOperand(expCtx, secondElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1098:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1098 | millisecondElem ? parseOperand(expCtx, millisecondElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1099:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1099 | isoWeekYearElem ? parseOperand(expCtx, isoWeekYearElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1100:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1100 | isoWeekElem ? parseOperand(expCtx, isoWeekElem, vps) : nullptr, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1101:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1101 | isoDayOfWeekElem ? parseOperand(expCtx, isoDayOfWeekElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1102:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1102 | 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:1364:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1364 | intrusive_ptr ExpressionDateFromString::parse( | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1429:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1429 | parseOperand(expCtx, dateStringElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1430:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1430 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) : nullptr, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1431:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1431 | formatElem ? parseOperand(expCtx, formatElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1432:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1432 | onNullElem ? parseOperand(expCtx, onNullElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1433:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1433 | 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:1572:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1572 | intrusive_ptr ExpressionDateToParts::parse( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1606:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1606 | parseOperand(expCtx, dateElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1607:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1607 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) : nullptr, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1608:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1608 | 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:1721:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1721 | intrusive_ptr ExpressionDateToString::parse( | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1775:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1775 | parseOperand(expCtx, dateElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1776:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1776 | formatElem ? parseOperand(expCtx, formatElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1777:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1777 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1778 | : nullptr, | ~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1779:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1779 | 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:2191:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2191 | intrusive_ptr ExpressionFilter::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2220:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2220 | intrusive_ptr input = parseOperand(expCtx, inputElem, vpsIn); | ^ src/mongo/db/pipeline/expression.cpp:2232:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2232 | intrusive_ptr cond = parseOperand(expCtx, condElem, vpsSub); | ^ 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:2417:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2417 | intrusive_ptr ExpressionMap::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2448:46: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2448 | parseOperand(expCtx, inputElem, vpsIn); // only has outer vars | ^ src/mongo/db/pipeline/expression.cpp:2461:44: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2461 | 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:3636:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 3636 | intrusive_ptr ExpressionReduce::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3656:42: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3656 | reduce->_input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3658:44: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3658 | reduce->_initial = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3660:39: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3660 | reduce->_in = parseOperand(expCtx, elem, vpsSub); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ 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:4639:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4639 | intrusive_ptr ExpressionTrim::parse( | ^~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4662:33: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4662 | input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4664:38: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4664 | 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:4897:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4897 | intrusive_ptr ExpressionZip::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4916:55: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4916 | newZip->_inputs.push_back(parseOperand(expCtx, subExpr, vps)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4924:57: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4924 | newZip->_defaults.push_back(parseOperand(expCtx, subExpr, vps)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_lock_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_lock_file.cpp 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:5561:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 5561 | intrusive_ptr ExpressionConvert::parse( | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5575:46: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5575 | newConvert->_input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5577:43: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5577 | newConvert->_to = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5579:48: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5579 | newConvert->_onError = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5581:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5581 | newConvert->_onNull = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ 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:4485:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4485 | boost::intrusive_ptr ExpressionSwitch::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4518:62: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4518 | branchExpression.first = parseOperand(expCtx, branchElement, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4520:63: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4520 | branchExpression.second = parseOperand(expCtx, branchElement, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4539:48: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4539 | expression->_default = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ 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:2319:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2319 | intrusive_ptr ExpressionLet::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2354:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2354 | parseOperand(expCtx, varElem, vpsIn)); // only has outer vars | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2358:82: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2358 | intrusive_ptr subExpression = parseOperand(expCtx, inElem, vpsSub); // has our vars | ^ 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/client/dbclient_rs.h:37, from src/mongo/s/client/version_manager.cpp:37: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member 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::allocator >&>, std::tuple<>}; _Key = std::__cxx11::basic_string; _Val = std::pair, long long unsigned int>; _KeyOfValue = std::_Select1st, long long unsigned int> >; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, long long unsigned int> >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/client/dbclient_rs.h:37, from src/mongo/s/client/version_manager.cpp:37: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In function 'bool mongo::{anonymous}::initShardVersionEmptyNS(mongo::OperationContext*, mongo::DBClientBase*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, long long unsigned int> >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In function 'bool mongo::{anonymous}::checkShardVersion(mongo::OperationContext*, mongo::DBClientBase*, const string&, std::shared_ptr, bool, int)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, long long unsigned int> >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, 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:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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::ExpressionTrunc]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_lock_file_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_lock_file_posix.cpp 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/compressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/compressor.cpp 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, 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:906:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 906 | intrusive_ptr ExpressionCond::parse( | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp:921:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 921 | ret->vpOperand[0] = parseOperand(expCtx, arg, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:923:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 923 | ret->vpOperand[1] = parseOperand(expCtx, arg, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:925:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 925 | ret->vpOperand[2] = parseOperand(expCtx, arg, 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::ExpressionCeil]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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::ExpressionAbs]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/dictbe.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dictbe.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locresdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/locresdata.cpp ar rcsTD build/opt/mongo/db/storage/libstorage_engine_lock_file.a build/opt/mongo/db/storage/storage_engine_lock_file.o build/opt/mongo/db/storage/storage_engine_lock_file_posix.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_engine_lock_file.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_bucket.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/mongo_process_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/mongo_process_common.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/log_severity.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_commit_chunk_migration_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/db/pipeline/mongo_process_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/db/pipeline/mongo_process_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/encryption_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/encryption_hooks.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:35, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__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:49:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 49 | intrusive_ptr getExpressionConstant( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket.cpp:53:41: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 53 | auto expr = Expression::parseOperand(expCtx, expressionElem, vps)->optimize(); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/clone_catalog_data_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp 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:58:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 58 | list> DocumentSourceBucket::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket.cpp:102:82: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 102 | auto exprConst = getExpressionConstant(pExpCtx, boundaryElem, vps); | ^ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/pipeline/document_source_bucket.cpp:151:74: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 151 | auto exprConst = getExpressionConstant(pExpCtx, argument, vps); | ^ src/mongo/db/pipeline/document_source_bucket.cpp:222:92: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 222 | auto groupSource = DocumentSourceGroup::createFromBson(groupObj.firstElement(), pExpCtx); | ^ src/mongo/db/pipeline/document_source_bucket.cpp:223:89: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 223 | auto sortSource = DocumentSourceSort::createFromBson(sortObj.firstElement(), pExpCtx); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_time_metadata_hook.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/devnull/devnull_kv_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/devnull/devnull_kv_engine.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libexpression.a build/opt/mongo/db/pipeline/expression.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libexpression.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/client_metadata_ismaster.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/client_metadata_ismaster.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/index_catalog_impl.h:33, from src/mongo/db/catalog/index_catalog_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BsonRecord&}; _Tp = mongo::BsonRecord; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/catalog/index_catalog_impl.h:33, from src/mongo/db/catalog/index_catalog_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::IndexCatalogImpl::_indexRecords(mongo::OperationContext*, mongo::IndexCatalogEntry*, const std::vector&, int64_t*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucasemap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucasemap.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/utf_impl.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 -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 -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/utf_impl.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/crypto/sha_block_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/crypto/sha_block_openssl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/vzone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/vzone.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/operation_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/operation_sharding_state.cpp /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/journal_listener.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/journal_listener.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batched_command_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_command_response.cpp ar rcsTD build/opt/mongo/crypto/libsha_block_openssl.a build/opt/mongo/crypto/sha_block_openssl.o Skipping ranlib for thin archive build/opt/mongo/crypto/libsha_block_openssl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batched_upsert_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_upsert_detail.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/util/libsecure_zero_memory.a build/opt/mongo/util/secure_zero_memory.o In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/util/libsecure_zero_memory.a 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_merge_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_merge_cursors.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_manager.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/signal_win32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/signal_win32.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/wire_version.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/redaction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/redaction.cpp 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/udataswp.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 -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 -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/udataswp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/log_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/log_builder.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/storage_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/storage_validation.cpp ar rcsTD build/opt/mongo/s/write_ops/libbatch_write_types.a build/opt/mongo/s/write_ops/batched_command_request.o build/opt/mongo/s/write_ops/batched_command_response.o build/opt/mongo/s/write_ops/batched_upsert_detail.o build/opt/mongo/s/write_ops/write_error_detail.o In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/s/write_ops/libbatch_write_types.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/field_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/field_checker.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/path_support.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_commands.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_mongod.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RemoteCursor}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_merge_cursors.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceMergeCursors::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_merge_cursors.cpp:116:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 116 | boost::intrusive_ptr DocumentSourceMergeCursors::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/pipeline/document_source_merge_cursors.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_mergeCursors(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_merge_cursors.cpp:40:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 40 | REGISTER_DOCUMENT_SOURCE(mergeCursors, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/update/path_support.h:40, from src/mongo/db/update/path_support.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/update/path_support.h:40, from src/mongo/db/update/path_support.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/update/path_support.h:41, from src/mongo/db/update/path_support.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/copydb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/copydb.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/update/libupdate_common.a build/opt/mongo/db/update/field_checker.o build/opt/mongo/db/update/log_builder.o build/opt/mongo/db/update/path_support.o build/opt/mongo/db/update/storage_validation.o Skipping ranlib for thin archive build/opt/mongo/db/update/libupdate_common.a In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.c 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_options.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/task_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/task_runner.cpp ar rcsTD build/opt/mongo/db/ftdc/libftdc_mongod.a build/opt/mongo/db/ftdc/ftdc_commands.o build/opt/mongo/db/ftdc/ftdc_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/ftdc/libftdc_mongod.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_settings_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_settings_init.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libsasl_options.a build/opt/mongo/db/auth/sasl_options.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsasl_options.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/durop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/durop.cpp ar rcsTD build/opt/mongo/db/repl/librepl_settings.a build/opt/mongo/db/repl/repl_settings.o build/opt/mongo/db/repl/repl_settings_init.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_settings.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u32.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 -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 -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_u32.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/tee_buffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/tee_buffer.cpp ar rcsTD build/opt/mongo/db/repl/libtask_runner.a build/opt/mongo/db/repl/task_runner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libtask_runner.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_control_balancer_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_control_balancer_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/tee_buffer.h:37, from src/mongo/db/pipeline/tee_buffer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/tee_buffer.h:37, from src/mongo/db/pipeline/tee_buffer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/collector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/collector.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/set_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/set_node.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/tee_buffer.h:38, from src/mongo/db/pipeline/tee_buffer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/tee_buffer.h:38, from src/mongo/db/pipeline/tee_buffer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/set_node.h:33, from src/mongo/db/update/set_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/set_node.h:33, from src/mongo/db/update/set_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/update/path_support.h:41, from src/mongo/db/update/set_node.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/tee_buffer.h:38, from src/mongo/db/pipeline/tee_buffer.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/component_message_log_domain.cpp src/mongo/db/update/set_node.cpp: In member function 'virtual mongo::Status mongo::SetNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/set_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status SetNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_wsconf.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/document_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/document_validation.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidiln.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 -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 -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/ubidiln.c ar rcsTD build/opt/mongo/util/libelapsed_tracker.a build/opt/mongo/util/elapsed_tracker.o Skipping ranlib for thin archive build/opt/mongo/util/libelapsed_tracker.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_lockpings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_lockpings.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/balancer_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_policy.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy.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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/migration_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/migration_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/s/balancer/balancer_policy.h:34, from src/mongo/db/s/balancer/balancer_policy.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ShardId&, const mongo::ChunkType&}; _Tp = mongo::MigrateInfo; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const mongo::ShardId&, const mongo::ChunkType&}; _Tp = mongo::MigrateInfo; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/scoped_migration_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/scoped_migration_request.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/balancer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer.cpp src/mongo/db/s/balancer/scoped_migration_request.cpp: In static member function 'static mongo::StatusWith mongo::ScopedMigrationRequest::writeMigration(mongo::OperationContext*, const mongo::MigrateInfo&, bool)': src/mongo/db/s/balancer/scoped_migration_request.cpp:169:25: warning: redundant move in return statement [-Wredundant-move] 169 | return std::move(scopedMigrationRequest); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/s/balancer/scoped_migration_request.cpp:169:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; _Tp = mongo::BalancerChunkSelectionPolicy::SplitInfo; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; _Tp = mongo::MigrateInfo; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BalancerChunkSelectionPolicy::SplitInfo&}; _Tp = mongo::BalancerChunkSelectionPolicy::SplitInfo; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ChunkType&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = __gnu_cxx::__normal_iterator >; _UGenerator = std::linear_congruential_engine&]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:3786:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 3786 | shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:3786:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/cluster_statistics_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/cluster_statistics_impl.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::StatusWith mongo::{anonymous}::createCollectionDistributionStatus(mongo::OperationContext*, const ShardStatisticsVector&, mongo::ChunkManager*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp: In member function 'virtual mongo::StatusWith > mongo::BalancerChunkSelectionPolicyImpl::selectChunksToMove(mongo::OperationContext*, bool)': src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:261:17: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 261 | std::shuffle(collections.begin(), collections.end(), _random); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/set:60, from src/mongo/db/s/balancer/balancer_policy.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:37, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::pair std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_hint_unique_pos(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, const key_type&) [with _Key = mongo::BSONObj; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = mongo::BSONComparatorInterfaceBase::LessThan; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2187:5: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::BSONComparatorInterfaceBase::LessThan, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2187 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/storage/libjournal_listener.a build/opt/mongo/db/storage/journal_listener.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libjournal_listener.a In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::StatusWith > mongo::BalancerChunkSelectionPolicyImpl::_getSplitCandidatesForCollection(mongo::OperationContext*, const mongo::NamespaceString&, const ShardStatisticsVector&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_heartbeat_args_v1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp: In member function 'virtual mongo::StatusWith > mongo::BalancerChunkSelectionPolicyImpl::selectChunksToSplit(mongo::OperationContext*)': src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:206:17: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 206 | std::shuffle(collections.begin(), collections.end(), _random); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_html_summary.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_html_summary.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/random.h:34, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/random:49, from src/mongo/db/s/balancer/balancer_random.h:33, from src/mongo/db/s/balancer/cluster_statistics_impl.h:33, from src/mongo/db/s/balancer/cluster_statistics_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 std::__cxx11::basic_string, std::allocator >&, long long int, long long int, bool, std::set, std::allocator >, std::less, std::allocator > >, std::allocator, std::allocator > > >, std::__cxx11::basic_string, std::allocator >}; _Tp = mongo::ClusterStatistics::ShardStatistics; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/s/client/shard.h:33, from src/mongo/db/s/balancer/cluster_statistics.h:39, from src/mongo/db/s/balancer/cluster_statistics_impl.h:34, from src/mongo/db/s/balancer/cluster_statistics_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = __gnu_cxx::__normal_iterator >; _UGenerator = std::linear_congruential_engine&]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:3786:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 3786 | shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:3786:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 src/mongo/db/s/balancer/cluster_statistics_impl.cpp: In member function 'virtual mongo::StatusWith > mongo::ClusterStatisticsImpl::getStats(mongo::OperationContext*)': src/mongo/db/s/balancer/cluster_statistics_impl.cpp:116:17: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 116 | std::shuffle(shards.begin(), shards.end(), _random); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/random.h:34, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/random:49, from src/mongo/db/s/balancer/balancer_random.h:33, from src/mongo/db/s/balancer/cluster_statistics_impl.h:33, from src/mongo/db/s/balancer/cluster_statistics_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/s/balancer/cluster_statistics_impl.cpp:164:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 164 | } | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/member_config.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/member_config.cpp ar rcsTD build/opt/mongo/db/s/libbalancer.a build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.o build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy.o build/opt/mongo/db/s/balancer/balancer_policy.o build/opt/mongo/db/s/balancer/balancer.o build/opt/mongo/db/s/balancer/cluster_statistics_impl.o build/opt/mongo/db/s/balancer/cluster_statistics.o build/opt/mongo/db/s/balancer/migration_manager.o build/opt/mongo/db/s/balancer/scoped_migration_request.o build/opt/mongo/db/s/balancer/type_migration.o Skipping ranlib for thin archive build/opt/mongo/db/s/libbalancer.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/is_master_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/is_master_response.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_response.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/update_position_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/update_position_args.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_tag.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_config.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_config.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/update_position_args.h:33, from src/mongo/db/repl/update_position_args.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::UpdatePositionArgs::UpdateInfo}; _Tp = mongo::repl::UpdatePositionArgs::UpdateInfo; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::Status mongo::repl::UpdatePositionArgs::initialize(const mongo::BSONObj&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/last_vote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/last_vote.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.c In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.c In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/private/record_store_validate_adaptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/private/record_store_validate_adaptor.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/sync_tail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/sync_tail.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/catalog/private/record_store_validate_adaptor.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/catalog/private/record_store_validate_adaptor.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include src/third_party/shim_asio.cpp ar rcsTD build/opt/third_party/libshim_asio.a build/opt/third_party/shim_asio.o Skipping ranlib for thin archive build/opt/third_party/libshim_asio.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/resource.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/resource.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/data_range.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/murmurhash3/MurmurHash3.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc -Ibuild/opt -Isrc src/third_party/murmurhash3/MurmurHash3.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_config.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BSONObj&, mongo::repl::ReplSetTagConfig*}; _Tp = mongo::repl::MemberConfig; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/signal_handlers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/signal_handlers.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_rebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index_rebuilder.cpp /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::Status mongo::repl::ReplSetConfig::_initialize(const mongo::BSONObj&, bool, mongo::OID)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_state_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_state_command.cpp ar rcsTD build/opt/mongo/db/repl/libreplica_set_messages.a build/opt/mongo/db/repl/is_master_response.o build/opt/mongo/db/repl/member_config.o build/opt/mongo/db/repl/repl_set_config.o build/opt/mongo/db/repl/repl_set_heartbeat_args.o build/opt/mongo/db/repl/repl_set_heartbeat_args_v1.o build/opt/mongo/db/repl/repl_set_heartbeat_response.o build/opt/mongo/db/repl/repl_set_html_summary.o build/opt/mongo/db/repl/repl_set_request_votes_args.o build/opt/mongo/db/repl/repl_set_tag.o build/opt/mongo/db/repl/update_position_args.o build/opt/mongo/db/repl/last_vote.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplica_set_messages.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uidna.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uidna.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_snappy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/message_compressor_snappy.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/network_interface_factory.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_leaf.h:33, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: 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:69:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/repl/sync_tail.h:37, from src/mongo/db/repl/sync_tail.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BSONObj}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'bool mongo::repl::SyncTail::tryPopAndWaitForMore(mongo::OperationContext*, mongo::repl::OplogBuffer*, mongo::repl::SyncTail::OpQueue*, const BatchLimits&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::InsertStatement}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/repl/sync_tail.h:37, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/repl/sync_tail.cpp: In lambda function: src/mongo/db/repl/sync_tail.cpp:300:65: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 300 | return {nss.db().toString(), uassertStatusOK(UUID::parse(ui))}; | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_leaf.h:33, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/bson/bsonelement_comparator.h: In function 'void mongo::repl::{anonymous}::fillWriterVectors(mongo::OperationContext*, mongo::repl::MultiApplier::Operations*, std::vector >*, std::vector >*, mongo::repl::SessionUpdateTracker*)': src/mongo/bson/bsonelement_comparator.h:69:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/repl/sync_tail.h:37, from src/mongo/db/repl/sync_tail.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static void std::_Function_handler::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Functor = mongo::repl::{anonymous}::scheduleWritesToOplog(mongo::OperationContext*, mongo::repl::StorageInterface*, mongo::ThreadPool*, const Operations&)::::; _ArgTypes = {}]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/pluralaffix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/pluralaffix.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/parsed_exclusion_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_exclusion_projection.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_comparator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_path_support.cpp 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/document_comparator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/document_comparator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/value_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/value_comparator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/value.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/value.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_path_support.h:35, from src/mongo/db/pipeline/document_path_support.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_path_support.h:35, from src/mongo/db/pipeline/document_path_support.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/value_comparator.h:37, from src/mongo/db/pipeline/value_comparator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/value.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/value.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/modifier_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/modifier_node.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/bson/bsonmisc.h:35, from src/mongo/db/pipeline/value_internal.h:37, from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/value.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_unicode_tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_unicode_tokenizer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/modifier_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/modifier_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/update/path_support.h:41, from src/mongo/db/update/modifier_node.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_factory_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_interface.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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libdocument_value.a build/opt/mongo/db/pipeline/document.o build/opt/mongo/db/pipeline/document_comparator.o build/opt/mongo/db/pipeline/document_path_support.o build/opt/mongo/db/pipeline/value.o build/opt/mongo/db/pipeline/value_comparator.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libdocument_value.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/parsepos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/parsepos.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/sequential_document_cache.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_session.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/sequential_document_cache.h:37, from src/mongo/db/pipeline/sequential_document_cache.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/sequential_document_cache.h:37, from src/mongo/db/pipeline/sequential_document_cache.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/db.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/db/db.cpp ar rcsTD build/opt/mongo/db/query/collation/libcollator_factory_interface.a build/opt/mongo/db/query/collation/collator_factory_interface.o Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_factory_interface.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbidata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbbidata.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/environment.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/i18n/utmscale.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 -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 -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/utmscale.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/fetch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/fetch.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/write_unit_of_work.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/write_unit_of_work.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/fetch.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/fetch.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/fetch.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/fetch.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libwrite_unit_of_work.a build/opt/mongo/db/storage/write_unit_of_work.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libwrite_unit_of_work.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tznames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tznames.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstrieiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucharstrieiterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/shell/linenoise_utf8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/shell/linenoise_utf8.cpp ar rcsTD build/opt/mongo/liblinenoise_utf8.a build/opt/mongo/shell/linenoise_utf8.o Skipping ranlib for thin archive build/opt/mongo/liblinenoise_utf8.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_destination_manager_legacy_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_destination_manager_legacy_commands.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/isself.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/fetch.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/fetch.cpp:33: 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:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/heartbeat_response_action.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/heartbeat_response_action.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfcd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationfcd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/repair_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/repair_database.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/persncal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/persncal.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/codepoints_diacritic_map.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/unicode/codepoints_diacritic_map.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libisself.a build/opt/mongo/db/repl/isself.o 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/libisself.a 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/apply_ops_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/apply_ops_gen.cpp 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/db.cpp:75: src/mongo/db/op_observer_registry.h: In member function 'virtual void mongo::OpObserverRegistry::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/op_observer_registry.h:71:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 71 | void onInserts(OperationContext* const opCtx, | ^~~~~~~~~ src/mongo/db/op_observer_registry.h:71:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/op_observer_registry.h:79:25: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 79 | o->onInserts(opCtx, nss, uuid, begin, end, fromMigrate); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/op_observer_registry.h:79:25: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/journal_latency_test_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.cpp:33: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_journal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_journal.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/data_file_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/data_file_sync.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:53: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:33: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_index.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/catalog/hashtab.h:36, from src/mongo/db/storage/mmap_v1/catalog/namespace_index.cpp:42: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_journal_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_journal_writer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/aligned_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/aligned_builder.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_recovery_unit.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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_preplogbuffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_preplogbuffer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/index_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/index_details.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/data_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/data_file.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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/hashtab.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/hashtab.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/catalog/hashtab.h:36, from src/mongo/db/storage/mmap_v1/catalog/hashtab.cpp:35: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:46: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_recover.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_recover.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_manager_external_state_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state_d.cpp 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/dbcheck.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/dbcheck.cpp src/mongo/db/storage/mmap_v1/dur_recover.cpp: In member function 'bool mongo::dur::RecoveryJob::processFileBuffer(mongo::OperationContext*, const void*, unsigned int)': src/mongo/db/storage/mmap_v1/dur_recover.cpp:492:41: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct mongo::dur::JHeader'; use assignment or value-initialization instead [-Wclass-memaccess] 492 | std::memset(&h, 0, sizeof(h)); | ^ In file included from src/mongo/db/storage/mmap_v1/dur_recover.h:40, from src/mongo/db/storage/mmap_v1/dur_recover.cpp:37: src/mongo/db/storage/mmap_v1/dur_journalformat.h:50:8: note: 'struct mongo::dur::JHeader' declared here 50 | struct JHeader { | ^~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog.cpp In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:43: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_lmb.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 -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 -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_lmb.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.c src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp: In member function 'virtual bool mongo::NamespaceDetailsCollectionCatalogEntry::isEqualToMetadataUUID(mongo::OperationContext*, mongo::OptionalCollectionUUID)': src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:474:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 474 | return !optionsObj["uuid"].eoo() && UUID::parse(optionsObj["uuid"]).getValue() == uuid; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:36, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:35: src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp: In member function 'virtual void mongo::NamespaceDetailsCollectionCatalogEntry::addUUID(mongo::OperationContext*, mongo::CollectionUUID, mongo::Collection*)': src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:452:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 452 | fassert(40565, UUID::parse(namespacesBson["options"].Obj()["uuid"]).getValue() == uuid); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:271:57: note: in definition of macro 'MONGO_fassert' 271 | #define MONGO_fassert(...) ::mongo::fassertWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:452:9: note: in expansion of macro 'fassert' 452 | fassert(40565, UUID::parse(namespacesBson["options"].Obj()["uuid"]).getValue() == uuid); | ^~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_server.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_system_stats.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/libstorage_mmapv1.a build/opt/mongo/db/storage/mmap_v1/aligned_builder.o build/opt/mongo/db/storage/mmap_v1/catalog/hashtab.o build/opt/mongo/db/storage/mmap_v1/catalog/index_details.o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details.o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_index.o build/opt/mongo/db/storage/mmap_v1/commit_notifier.o build/opt/mongo/db/storage/mmap_v1/data_file.o build/opt/mongo/db/storage/mmap_v1/data_file_sync.o build/opt/mongo/db/storage/mmap_v1/durable_mapped_file.o build/opt/mongo/db/storage/mmap_v1/dur.o build/opt/mongo/db/storage/mmap_v1/durop.o build/opt/mongo/db/storage/mmap_v1/dur_preplogbuffer.o build/opt/mongo/db/storage/mmap_v1/dur_commitjob.o build/opt/mongo/db/storage/mmap_v1/dur_recover.o build/opt/mongo/db/storage/mmap_v1/dur_journal.o build/opt/mongo/db/storage/mmap_v1/dur_journal_writer.o build/opt/mongo/db/storage/mmap_v1/dur_recovery_unit.o build/opt/mongo/db/storage/mmap_v1/journal_latency_test_cmd.o build/opt/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.o build/opt/mongo/db/storage/mmap_v1/mmap_v1_engine.o build/opt/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.o build/opt/mongo/db/storage/mmap_v1/mmap_v1_noinit.o build/opt/mongo/db/storage/mmap_v1/repair_database.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libstorage_mmapv1.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_system_stats_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_system_stats_linux.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/arithmetic_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/arithmetic_node.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_op_cmd_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_op_cmd_base.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/arithmetic_node.h:33, from src/mongo/db/update/arithmetic_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/arithmetic_node.h:33, from src/mongo/db/update/arithmetic_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/killcursors_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/killcursors_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/update/arithmetic_node.cpp: In member function 'virtual mongo::Status mongo::ArithmeticNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/arithmetic_node.cpp:63:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 63 | Status ArithmeticNode::init(BSONElement modExpr, | ^~~~~~~~~~~~~~ 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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sequential_document_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sequential_document_cache.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/ftdc/libftdc_server.a build/opt/mongo/db/ftdc/ftdc_server.o build/opt/mongo/db/ftdc/ftdc_system_stats.o build/opt/mongo/db/ftdc/ftdc_system_stats_linux.o Skipping ranlib for thin archive build/opt/mongo/db/ftdc/libftdc_server.a In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/network_interface_thread_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/network_interface_thread_pool.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/executor/libnetwork_interface_thread_pool.a build/opt/mongo/executor/network_interface_thread_pool.o Skipping ranlib for thin archive build/opt/mongo/executor/libnetwork_interface_thread_pool.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_single_document_transformation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_single_document_transformation.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/python 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 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_casefold.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/commands.h:35, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 int&}; _Tp = long long int; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/commands.h:35, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual bool mongo::KillCursorsCmdBase::run(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.c ar rcsTD build/opt/mongo/db/commands/libkill_common.a build/opt/mongo/db/commands/killcursors_common.o build/opt/mongo/db/commands/kill_op_cmd_base.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libkill_common.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/sharding_network_connection_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/sharding_network_connection_hook.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtitvinf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dtitvinf.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/mongod_options.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 int&}; _Tp = long long int; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual std::__cxx11::list >::iterator mongo::DocumentSourceSequentialDocumentCache::doOptimizeAt(std::__cxx11::list >::iterator, mongo::Pipeline::SourceContainer*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:132:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 132 | } | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/remote_command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/remote_command_request.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/s2_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/s2_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/index/libindex_access_method.a build/opt/mongo/db/index/index_access_method.o Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_access_method.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_yield.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_yield.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_watch_for_uuid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_watch_for_uuid.cpp ar rcsTD build/opt/mongo/db/index/libexpression_params.a build/opt/mongo/db/index/expression_params.o build/opt/mongo/db/index/s2_common.o Skipping ranlib for thin archive build/opt/mongo/db/index/libexpression_params.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/startup_warnings_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/startup_warnings_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/dbcommands_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/dbcommands_d.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.cpp:32: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/scatter_gather_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/scatter_gather_runner.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_op_observer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_request.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/tailable_mode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/tailable_mode.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/or.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/or.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::parseFromFindCommand(std::unique_ptr, const mongo::BSONObj&, bool)': src/mongo/db/query/query_request.cpp:401:21: warning: redundant move in return statement [-Wredundant-move] 401 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:401:21: note: remove 'std::move' call src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::fromLegacyQueryMessage(const mongo::QueryMessage&)': src/mongo/db/query/query_request.cpp:733:21: warning: redundant move in return statement [-Wredundant-move] 733 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:733:21: note: remove 'std::move' call src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::fromLegacyQuery(mongo::NamespaceString, const mongo::BSONObj&, const mongo::BSONObj&, int, int, int)': src/mongo/db/query/query_request.cpp:749:21: warning: redundant move in return statement [-Wredundant-move] 749 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:749:21: note: remove 'std::move' call src/mongo/db/free_mon/free_mon_op_observer.cpp: In member function 'virtual void mongo::FreeMonOpObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/free_mon/free_mon_op_observer.cpp:72:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 72 | void FreeMonOpObserver::onInserts(OperationContext* opCtx, | ^~~~~~~~~~~~~~~~~ src/mongo/db/free_mon/free_mon_op_observer.cpp:72:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/or.h:35, from src/mongo/db/exec/or.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/or.h:35, from src/mongo/db/exec/or.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/text.cpp In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/exec/or.h:35, from src/mongo/db/exec/or.cpp:31: 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:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/message_compressor_manager.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/block_compressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/block_compressor.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/write_ops_parsers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_parsers.cpp src/mongo/db/query/query_request.cpp: In static member function 'static bool mongo::QueryRequest::isTextScoreMeta(mongo::BSONElement)': src/mongo/db/query/query_request.cpp:671:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 671 | bool QueryRequest::isTextScoreMeta(BSONElement elt) { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/startup_warnings_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/startup_warnings_mongod.cpp src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith mongo::QueryRequest::parseMaxTimeMS(mongo::BSONElement)': src/mongo/db/query/query_request.cpp:648:17: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 648 | StatusWith QueryRequest::parseMaxTimeMS(BSONElement maxTimeMSElt) { | ^~~~~~~~~~~~ src/mongo/db/query/query_request.cpp: In member function 'mongo::Status mongo::QueryRequest::initFullQuery(const mongo::BSONObj&)': src/mongo/db/query/query_request.cpp:894:61: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 894 | StatusWith maxTimeMS = parseMaxTimeMS(e); | ^ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_icu_decoration.cpp src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::parseFromFindCommand(std::unique_ptr, const mongo::BSONObj&, bool)': src/mongo/db/query/query_request.cpp:280:58: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 280 | StatusWith maxTimeMS = parseMaxTimeMS(el); | ^ In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/query/query_request.h:36, from src/mongo/db/query/query_request.cpp:33: src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::makeFromFindCommand(mongo::NamespaceString, const mongo::BSONObj&, bool)': src/mongo/db/query/query_request.cpp:409:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 409 | auto uuid = uassertStatusOK(UUID::parse(first)); | ~~~~~~~~~~~^~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/btree/key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/btree/key.cpp ar rcsTD build/opt/mongo/db/query/libquery_request.a build/opt/mongo/db/query/query_request.o build/opt/mongo/db/query/tailable_mode.o build/opt/mongo/db/query/tailable_mode_gen.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_request.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitinterval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/digitinterval.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/data_range_cursor.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/parsed_add_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_add_fields.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharded_connection_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharded_connection_info.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/get_status_from_command_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/get_status_from_command_result.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/parsed_add_fields.h:35, from src/mongo/db/pipeline/parsed_add_fields.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/parsed_add_fields.h:35, from src/mongo/db/pipeline/parsed_add_fields.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/write_concern_error_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/write_concern_error_detail.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/listformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/listformatter.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_add_fields.h:37, from src/mongo/db/pipeline/parsed_add_fields.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_add_fields.h:37, from src/mongo/db/pipeline/parsed_add_fields.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_info.cpp ar rcsTD build/opt/mongo/rpc/libcommand_status.a build/opt/mongo/rpc/get_status_from_command_result.o build/opt/mongo/rpc/write_concern_error_detail.o Skipping ranlib for thin archive build/opt/mongo/rpc/libcommand_status.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/stacktrace_posix.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_add_fields.h:37, from src/mongo/db/pipeline/parsed_add_fields.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/parsed_add_fields.cpp: In member function 'void mongo::parsed_aggregation_projection::ParsedAddFields::parseSubObject(const mongo::BSONObj&, const mongo::VariablesParseState&, mongo::parsed_aggregation_projection::InclusionNode*)': src/mongo/db/pipeline/parsed_add_fields.cpp:132:60: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 132 | Expression::parseOperand(_expCtx, elem, variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/parsed_add_fields.cpp: In member function 'virtual void mongo::parsed_aggregation_projection::ParsedAddFields::parse(const mongo::BSONObj&)': src/mongo/db/pipeline/parsed_add_fields.cpp:80:41: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 80 | Expression::parseOperand(_expCtx, elem, _expCtx->variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/balance_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/balance_chunk_request_type.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/mongo_version_range.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/mongo_version_range.cpp 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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/merge_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/merge_chunk_request_type.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/add_shard_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/add_shard_request_type.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_chunk_base_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/catalog/type_chunk_base_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/migration_secondary_throttle_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/migration_secondary_throttle_options.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_mongos.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libreplication_info.a build/opt/mongo/db/repl/replication_info.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_info.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_collection.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_locks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_locks.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/s/catalog/type_collection.cpp: In static member function 'static mongo::StatusWith mongo::CollectionType::fromBSON(const mongo::BSONObj&)': src/mongo/s/catalog/type_collection.cpp:159:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 159 | auto swUUID = UUID::parse(uuidElem); | ^ /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/flush_database_cache_updates_gen.h --output build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp src/mongo/s/request_types/flush_database_cache_updates.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/update_zone_key_range_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/update_zone_key_range_request_type.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/commit_chunk_migration_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/commit_chunk_migration_request_type.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/flush_database_cache_updates_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/add_shard_to_zone_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/add_shard_to_zone_request_type.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/move_chunk_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/move_chunk_request.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_chunk.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/move_primary_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/move_primary_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/chunk_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/chunk_version.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/database_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/database_version_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_shard_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard_database.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/create_database_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/create_database_gen.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/get_database_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/request_types/get_database_version_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/type_database.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/request_types/remove_shard_from_zone_request_type.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/database_version_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/database_version_helpers.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/hex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/hex.cpp ar rcsTD build/opt/mongo/db/catalog/libdatabase_holder.a build/opt/mongo/db/catalog/database_holder.o In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/catalog/libdatabase_holder.a ar rcsTD build/opt/mongo/db/storage/mmap_v1/libfile_allocator.a build/opt/mongo/db/storage/mmap_v1/file_allocator.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libfile_allocator.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/list_collections_filter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/chunk_manager_targeter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/chunk_manager_targeter.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_consistency_markers.cpp ar rcsTD build/opt/mongo/s/libcommon_s.a build/opt/mongo/s/catalog/mongo_version_range.o build/opt/mongo/s/catalog/type_changelog.o build/opt/mongo/s/catalog/type_chunk.o build/opt/mongo/s/catalog/type_collection.o build/opt/mongo/s/catalog/type_config_version.o build/opt/mongo/s/catalog/type_database.o build/opt/mongo/s/catalog/type_lockpings.o build/opt/mongo/s/catalog/type_locks.o build/opt/mongo/s/catalog/type_mongos.o build/opt/mongo/s/catalog/type_shard_collection.o build/opt/mongo/s/catalog/type_shard_database.o build/opt/mongo/s/catalog/type_shard.o build/opt/mongo/s/catalog/type_tags.o build/opt/mongo/s/request_types/add_shard_request_type.o build/opt/mongo/s/request_types/add_shard_to_zone_request_type.o build/opt/mongo/s/request_types/balance_chunk_request_type.o build/opt/mongo/s/request_types/commit_chunk_migration_request_type.o build/opt/mongo/s/request_types/merge_chunk_request_type.o build/opt/mongo/s/request_types/migration_secondary_throttle_options.o build/opt/mongo/s/request_types/move_chunk_request.o build/opt/mongo/s/request_types/remove_shard_from_zone_request_type.o build/opt/mongo/s/request_types/set_shard_version_request.o build/opt/mongo/s/request_types/split_chunk_request_type.o build/opt/mongo/s/request_types/update_zone_key_range_request_type.o build/opt/mongo/s/cannot_implicitly_create_collection_info.o build/opt/mongo/s/chunk_version.o build/opt/mongo/s/database_version_helpers.o build/opt/mongo/s/shard_id.o build/opt/mongo/s/stale_exception.o build/opt/mongo/s/catalog/type_chunk_base_gen.o build/opt/mongo/s/database_version_gen.o build/opt/mongo/s/request_types/clone_catalog_data_gen.o build/opt/mongo/s/request_types/create_collection_gen.o build/opt/mongo/s/request_types/create_database_gen.o build/opt/mongo/s/request_types/flush_database_cache_updates_gen.o build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.o build/opt/mongo/s/request_types/get_database_version_gen.o build/opt/mongo/s/request_types/move_primary_gen.o build/opt/mongo/s/request_types/shard_collection_gen.o build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.o Skipping ranlib for thin archive build/opt/mongo/s/libcommon_s.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/range_arithmetic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/range_arithmetic.cpp ar rcsTD build/opt/mongo/db/repl/libreplication_process.a build/opt/mongo/db/repl/replication_consistency_markers.o build/opt/mongo/db/repl/replication_process.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_process.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/scripting_none.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/scripting/scripting_none.cpp ar rcsTD build/opt/mongo/scripting/libscripting.a build/opt/mongo/scripting/scripting_none.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/operation_context.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/stage_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/stage_builder.cpp 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/option_description.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/role_graph_builtin_roles.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/role_graph_builtin_roles.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/role_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/role_graph.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/s/write_ops/chunk_manager_targeter.h:35, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ShardId, const mongo::ChunkVersion&}; _Tp = mongo::ShardEndpoint; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::StatusWith > mongo::ChunkManagerTargeter::targetAllShards(mongo::OperationContext*) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ShardId, const mongo::ChunkVersion&}; _Tp = mongo::ShardEndpoint; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const mongo::ShardId, const mongo::ChunkVersion&}; _Tp = mongo::ShardEndpoint; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/loclikely.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/loclikely.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatin.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationfastlatin.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/librole_graph.a build/opt/mongo/db/auth/role_graph.o build/opt/mongo/db/auth/role_graph_builtin_roles.o 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/auth/librole_graph.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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonobjbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/bsonobjbuilder.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_driver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_driver.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/umath.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 -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 -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/umath.c ar rcsTD build/opt/mongo/db/repl/liboplog_interface_local.a build/opt/mongo/db/repl/oplog_interface_local.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_interface_local.a /home/naourr/work/instance-2/output-1/host/bin/python src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.err src/mongo/shell/error_codes.tpl.js=build/opt/mongo/shell/error_codes.js /home/naourr/work/instance-2/output-1/host/bin/python site_scons/site_tools/jstoh.py build/opt/mongo/shell/mongo.cpp src/mongo/shell/assert.js src/mongo/shell/bulk_api.js src/mongo/shell/collection.js src/mongo/shell/crud_api.js src/mongo/shell/db.js build/opt/mongo/shell/error_codes.js src/mongo/shell/explainable.js src/mongo/shell/explain_query.js src/mongo/shell/mongo.js src/mongo/shell/mr.js src/mongo/shell/query.js src/mongo/shell/session.js src/mongo/shell/types.js src/mongo/shell/utils_auth.js src/mongo/shell/utils.js src/mongo/shell/utils_sh.js /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/shell/mongo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/shell/mongo.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/usetiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/usetiter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/data_replicator_external_state_initial_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value&}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual void mongo::DocumentSource::serializeToArray(std::vector&, boost::optional) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.cpp:31: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_options_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_options_helpers.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/lite_parsed_document_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/lite_parsed_document_source.cpp src/mongo/db/update/update_driver.cpp: In member function 'mongo::Status mongo::UpdateDriver::parse(const mongo::BSONObj&, const std::map >&, bool)': src/mongo/db/update/update_driver.cpp:132:77: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 132 | root, modType, field, expCtx, arrayFilters, foundIdentifiers); | ^ src/mongo/db/update/update_driver.cpp:132:77: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_fetcher.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/pipeline/liblite_parsed_document_source.a build/opt/mongo/db/pipeline/lite_parsed_document_source.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/liblite_parsed_document_source.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/resolved_view.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/resolved_view.cpp 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libdata_replicator_external_state_initial_sync.a build/opt/mongo/db/repl/data_replicator_external_state_initial_sync.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdata_replicator_external_state_initial_sync.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/rename_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/rename_node.cpp ar rcsTD build/opt/mongo/db/libserver_options.a build/opt/mongo/db/server_options_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_options.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/rename_node.h:33, from src/mongo/db/update/rename_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/mongo_uri_connect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/mongo_uri_connect.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/rename_node.h:33, from src/mongo/db/update/rename_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/views/libresolved_view.a build/opt/mongo/db/views/resolved_view.o Skipping ranlib for thin archive build/opt/mongo/db/views/libresolved_view.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/cecal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/cecal.cpp In file included from src/mongo/db/update/path_support.h:41, from src/mongo/db/update/rename_node.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_internal_split_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/update/rename_node.cpp: In member function 'virtual mongo::Status mongo::{anonymous}::SetElementNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/rename_node.cpp:69:12: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 69 | Status init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~ src/mongo/db/update/rename_node.cpp: In member function 'virtual mongo::Status mongo::RenameNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/rename_node.cpp:98:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 98 | Status RenameNode::init(BSONElement modExpr, | ^~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager.cpp 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/lock_server_status_section.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_create_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_create_collection_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/op_observer.cpp src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceInternalSplitPipeline::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:43:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 43 | boost::intrusive_ptr DocumentSourceInternalSplitPipeline::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap__internalSplitPipeline(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:37:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 37 | REGISTER_DOCUMENT_SOURCE(_internalSplitPipeline, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/dist_lock_ping_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_ping_info.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/async_requests_sender.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/s/async_requests_sender.h:33, from src/mongo/s/async_requests_sender.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Predicate = __gnu_cxx::__ops::_Iter_negate >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:112:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 112 | __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:112:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'bool mongo::AsyncRequestsSender::done()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:171:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 171 | return std::__find_if(__first, __last, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 172 | __gnu_cxx::__ops::__negate(__pred), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/read_concern_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/stats/read_concern_stats_gen.cpp ar rcsTD build/opt/mongo/db/libop_observer.a build/opt/mongo/db/op_observer.o Skipping ranlib for thin archive build/opt/mongo/db/libop_observer.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/document_source_router_adapter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/document_source_router_adapter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/write_ops_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/ops/write_ops_gen.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/async_requests_sender.h:34, from src/mongo/s/async_requests_sender.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ShardId&, const mongo::BSONObj&}; _Tp = mongo::AsyncRequestsSender::RemoteData; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In constructor 'mongo::AsyncRequestsSender::AsyncRequestsSender(mongo::OperationContext*, mongo::executor::TaskExecutor*, mongo::StringData, const std::vector&, const mongo::ReadPreferenceSetting&, mongo::Shard::RetryPolicy)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/s/async_requests_sender.h:33, from src/mongo/s/async_requests_sender.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::AsyncRequestsSender::Response mongo::AsyncRequestsSender::next()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:171:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 171 | return std::__find_if(__first, __last, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 172 | __gnu_cxx::__ops::__negate(__pred), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In destructor 'mongo::AsyncRequestsSender::~AsyncRequestsSender()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:171:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 171 | return std::__find_if(__first, __last, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 172 | __gnu_cxx::__ops::__negate(__pred), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_err.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 -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 -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_err.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplogreader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplogreader.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/flush_database_cache_updates_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/flush_database_cache_updates_command.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/log_component.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_bucket_auto.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_bucket_auto.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_parameters.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.cpp ar rcsTD build/opt/mongo/db/ops/libwrite_ops_parsers.a build/opt/mongo/db/ops/write_ops_parsers.o build/opt/mongo/db/ops/write_ops_gen.o Skipping ranlib for thin archive build/opt/mongo/db/ops/libwrite_ops_parsers.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tznames_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tznames_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/topology_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/topology_coordinator.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket_auto.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket_auto.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/member_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/member_data.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket_auto.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/match_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/match_details.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/repair_database_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/repair_database_interface.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_document_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_document_parser.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_heartbeat_response.h:37, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_drop_database_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_drop_database_command.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::DocumentSourceBucketAuto::Bucket&}; _Tp = mongo::DocumentSourceBucketAuto::Bucket; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::DocumentSourceBucketAuto::addBucket(mongo::DocumentSourceBucketAuto::Bucket&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket_auto.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceBucketAuto::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_bucket_auto.cpp:442:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 442 | intrusive_ptr DocumentSourceBucketAuto::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_bucket_auto.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/pipeline/document_source_bucket_auto.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_bucketAuto(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket_auto.cpp:45:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 45 | REGISTER_DOCUMENT_SOURCE(bucketAuto, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 std::pair&}; _Tp = std::pair; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector, std::allocator > >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:69, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/detail/container_fwd.hpp:91, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/container_hash/extensions.hpp:22, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/container_hash/hash.hpp:760, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/functional/hash.hpp:6, from src/mongo/db/pipeline/document.h:35, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Deque_iterator, const std::pair&, const std::pair*>; _Tp = std::pair; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 441 | deque<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::move_backward(_BI1, _BI1, _BI2) [with _BI1 = std::_Deque_iterator, std::pair&, std::pair*>; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 676 | move_backward(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::move(_II, _II, _OI) [with _II = std::_Deque_iterator, std::pair&, std::pair*>; _OI = std::pair*]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 497 | move(_II __first, _II __last, _OI __result) | ^~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_month.hpp:18, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_ymd.hpp:16, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_calendar.hpp:17, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/gregorian_types.hpp:19, from src/mongo/util/time_support.h:35, from src/mongo/bson/timestamp.h:36, from src/mongo/db/repl/optime.h:35, from src/mongo/db/repl/repl_set_heartbeat_response.h:36, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member 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 = mongo::HostAndPort; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2651 | return _GLIBCXX_MOVE3(__first2, __last2, | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_month.hpp:18, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_ymd.hpp:16, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_calendar.hpp:17, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/gregorian_types.hpp:19, from src/mongo/util/time_support.h:35, from src/mongo/bson/timestamp.h:36, from src/mongo/db/repl/optime.h:35, from src/mongo/db/repl/repl_set_heartbeat_response.h:36, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'mongo::Milliseconds mongo::repl::TopologyCoordinator::_getPing(const mongo::HostAndPort&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::spill() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2116:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2116 | return std::__upper_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2117 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::sorter::TopKSorter::add(const Key&, const Value&) [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::sorter::TopKSorter::Iterator* mongo::sorter::TopKSorter::done() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = std::pair*; _OI = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:438:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 438 | __copy_move_a2(_II __first, _II __last, _OI __result) | ^~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'std::pair > > mongo::repl::TopologyCoordinator::prepareHeartbeatRequestV1(mongo::Date_t, const string&, const mongo::HostAndPort&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'std::pair > > mongo::repl::TopologyCoordinator::prepareHeartbeatRequest(mongo::Date_t, const string&, const mongo::HostAndPort&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::__copy_move_backward_a2(_BI1, _BI1, _BI2) [with bool _IsMove = true; _BI1 = std::pair*; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 613 | __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2384:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2384 | __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2385 | _GLIBCXX_MOVE_BACKWARD3(__first, __middle, __last); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2395:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2395 | __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2419:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2419 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2425:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2425 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::NoLimitSorter::sort() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:67, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/detail/container_fwd.hpp:91, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/container_hash/extensions.hpp:22, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/container_hash/hash.hpp:760, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/functional/hash.hpp:6, from src/mongo/db/pipeline/document.h:35, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In member function 'mongo::sorter::NoLimitSorter::Iterator* mongo::sorter::NoLimitSorter::done() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 1906 | _M_range_initialize(__first, __last, | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'mongo::repl::HeartbeatResponseAction mongo::repl::TopologyCoordinator::processHeartbeatResponse(mongo::Date_t, mongo::Milliseconds, const mongo::HostAndPort&, const mongo::StatusWith&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_heartbeat_response.h:37, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::repl::MemberData; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In constructor 'mongo::repl::TopologyCoordinator::TopologyCoordinator(mongo::repl::TopologyCoordinator::Options)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::MemberData&}; _Tp = mongo::repl::MemberData; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/repl/last_vote.h:33, from src/mongo/db/repl/topology_coordinator.h:37, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_entry.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/repl/last_vote.h:33, from src/mongo/db/repl/topology_coordinator.h:37, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::repl::OpTime; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/repl/last_vote.h:33, from src/mongo/db/repl/topology_coordinator.h:37, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_heartbeat_response.h:37, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::repl::TopologyCoordinator::updateLastCommittedOpTime()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/repl/last_vote.h:33, from src/mongo/db/repl/topology_coordinator.h:37, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_heartbeat_response.h:37, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::repl::TopologyCoordinator::_updateHeartbeatDataForReconfig(const mongo::repl::ReplSetConfig&, int, mongo::Date_t)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/auth/libuser_document_parser.a build/opt/mongo/db/auth/user_document_parser.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libuser_document_parser.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uitercollationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uitercollationiterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/mutable/document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/mutable/document.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libindex_catalog_entry.a build/opt/mongo/db/catalog/index_catalog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_catalog_entry.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/connection_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/connection_pool.cpp ar rcsTD build/opt/mongo/db/repl/libtopology_coordinator.a build/opt/mongo/db/repl/heartbeat_response_action.o build/opt/mongo/db/repl/member_data.o build/opt/mongo/db/repl/topology_coordinator.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libtopology_coordinator.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_session_external_state_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state_d.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/resbund_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/resbund_cnv.cpp In file included from src/mongo/executor/connection_pool.cpp:44: src/mongo/util/lru_cache.h: In instantiation of 'boost::optional mongo::LRUCache::add(const K&, V) [with K = mongo::executor::ConnectionPool::ConnectionInterface*; V = std::shared_ptr; Hash = std::hash; KeyEqual = std::equal_to]': src/mongo/executor/connection_pool.cpp:610:44: required from here src/mongo/util/lru_cache.h:111:36: warning: redundant move in return statement [-Wredundant-move] 111 | return std::move(result); | ^ src/mongo/util/lru_cache.h:111:36: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dcfmtsym.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dcfmtsym.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog.cpp ar rcsTD build/opt/mongo/db/librw_concern_d.a build/opt/mongo/db/read_concern.o build/opt/mongo/db/write_concern.o Skipping ranlib for thin archive build/opt/mongo/db/librw_concern_d.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/abstract_async_component.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/abstract_async_component.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/executor/connection_pool.h:34, from src/mongo/executor/connection_pool.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > > >*, std::vector > > > > >; _Distance = int; _Tp = std::pair > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_val]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > > >*, std::vector > > > > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ushape.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ushape.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/executor/connection_pool.h:34, from src/mongo/executor/connection_pool.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::pair > > >}; _Tp = std::pair > > >; _Alloc = std::allocator > > > >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector > > > >::iterator' {aka '__gnu_cxx::__normal_iterator > > >*, std::vector > > > > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/executor/connection_pool.h:34, from src/mongo/executor/connection_pool.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > > >*, std::vector > > > > >; _Distance = int; _Tp = std::pair > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > > >*, std::vector > > > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text_noop.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/executor/connection_pool.h:34, from src/mongo/executor/connection_pool.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::future_details::Future > > mongo::executor::ConnectionPool::SpecificPool::getConnection(const mongo::HostAndPort&, mongo::Milliseconds, std::unique_lock)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libabstract_async_component.a build/opt/mongo/db/repl/abstract_async_component.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libabstract_async_component.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_key_validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_key_validate.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_noop.h:34, from src/mongo/db/matcher/expression_text_noop.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_noop.h:34, from src/mongo/db/matcher/expression_text_noop.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_noop.h:34, from src/mongo/db/matcher/expression_text_noop.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:59:21: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text_noop.cpp:59:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libop_observer_impl.a build/opt/mongo/db/op_observer_impl.o Skipping ranlib for thin archive build/opt/mongo/db/libop_observer_impl.a /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/create_indexes_gen.h --output build/opt/mongo/db/create_indexes_gen.cpp src/mongo/db/create_indexes.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/create_indexes_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/create_indexes_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/catalog/index_key_validate.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/catalog/index_key_validate.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/catalog/index_key_validate.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/catalog/index_key_validate.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/catalog/index_key_validate.cpp:46: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.cpp:50: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from build/opt/mongo/db/logical_session_id_gen.h:14, from src/mongo/db/logical_session_id.h:36, from src/mongo/db/sessions_collection.h:33, from src/mongo/db/sessions_collection.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::NewIndexSpec}; _Tp = mongo::NewIndexSpec; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static mongo::BSONObj mongo::SessionsCollection::generateCreateIndexesCmd()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/ftsmongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/ftsmongod.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_type.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from build/opt/mongo/db/create_indexes_gen.h:14, from build/opt/mongo/db/create_indexes_gen.cpp:9: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::NewIndexSpec}; _Tp = mongo::NewIndexSpec; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/oplog.h:34, from src/mongo/db/repl/oplog.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BSONObj, mongo::Timestamp, long long int}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_type.h:33, from src/mongo/db/matcher/expression_type.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_type.h:33, from src/mongo/db/matcher/expression_type.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_type.h:33, from src/mongo/db/matcher/expression_type.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::CreateIndexesCmd::parseProtected(const mongo::IDLParserErrorContext&, const mongo::BSONObj&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/repl/oplog.cpp: In function 'std::vector mongo::repl::logInsertOps(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, mongo::Session*, std::vector::const_iterator, std::vector::const_iterator, bool, mongo::Date_t)': src/mongo/db/repl/oplog.cpp:510:21: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 510 | std::vector logInsertOps(OperationContext* opCtx, | ^~~~~~~~~~~~ src/mongo/db/repl/oplog.cpp:510:21: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/repl/oplog.h:34, from src/mongo/db/repl/oplog.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsontypes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/bsontypes.cpp src/mongo/db/repl/oplog.cpp: In function 'mongo::NamespaceString mongo::repl::{anonymous}::parseUUIDorNs(mongo::OperationContext*, const char*, const mongo::BSONElement&, mongo::BSONObj&)': src/mongo/db/repl/oplog.cpp:772:41: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 772 | auto statusWithUUID = UUID::parse(ui); | ^ ar rcsTD build/opt/mongo/db/libsessions_collection.a build/opt/mongo/db/sessions_collection.o build/opt/mongo/db/create_indexes_gen.o In file included from src/mongo/db/matcher/expression_type.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.c In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/repl/oplog.h:37, from src/mongo/db/repl/oplog.cpp:35: src/mongo/db/repl/oplog.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = mongo::Status; _Functor = mongo::repl::{anonymous}::; _ArgTypes = {mongo::OperationContext*, const char*, const mongo::BSONElement&, mongo::BSONObj&, const mongo::repl::OpTime&, mongo::repl::OplogApplication::Mode}]': src/mongo/db/repl/oplog.cpp:760:54: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 760 | CollectionUUID uuid = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/data_replicator_external_state_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/data_replicator_external_state_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/catalog_control.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/catalog_control.cpp src/mongo/db/repl/oplog.cpp: In function 'mongo::Status mongo::repl::applyOperation_inlock(mongo::OperationContext*, mongo::Database*, const mongo::BSONObj&, bool, mongo::repl::OplogApplication::Mode, mongo::repl::IncrementOpsAppliedStatsFn)': src/mongo/db/repl/oplog.cpp:1120:48: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 1120 | auto uuid = uassertStatusOK(UUID::parse(fieldUI)); | ~~~~~~~~~~~^~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/oplog.h:34, from src/mongo/db/repl/oplog.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 481 | return this->_impl().insertDocuments(opCtx, begin, end, opDebug, enforceQuota, fromMigrate); | ^ src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_compact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_compact.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_consistency.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_consistency.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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libdata_replicator_external_state_impl.a build/opt/mongo/db/repl/data_replicator_external_state_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdata_replicator_external_state_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_create_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_create_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_info_cache_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_info_cache_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_catalog_entry_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_entry_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/catalog/index_catalog_entry_impl.h:41, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/catalog/index_catalog_entry_impl.h:41, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/index_catalog_entry_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/index_catalog_entry_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/catalog/collection_impl.cpp:53: src/mongo/db/catalog/uuid_catalog.h: In member function 'virtual void mongo::UUIDCatalogObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/catalog/uuid_catalog.h:53:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 53 | void onInserts(OperationContext* opCtx, | ^~~~~~~~~ src/mongo/db/catalog/uuid_catalog.h:53:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_time_validator.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::InsertStatement&}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 int&, const mongo::BSONObj&, mongo::OplogSlot&}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Record&}; _Tp = mongo::Record; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BsonRecord&}; _Tp = mongo::BsonRecord; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::StatusWith mongo::CollectionImpl::_updateDocumentWithMove(mongo::OperationContext*, const mongo::RecordId&, const mongo::Snapshotted&, const mongo::BSONObj&, bool, mongo::OpDebug*, mongo::OplogUpdateEntryArgs*, const mongo::SnapshotId&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp: In member function 'mongo::Status mongo::CollectionImpl::_insertDocuments(mongo::OperationContext*, std::vector::const_iterator, std::vector::const_iterator, bool, mongo::OpDebug*)': src/mongo/db/catalog/collection_impl.cpp:491:8: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 491 | Status CollectionImpl::_insertDocuments(OperationContext* opCtx, | ^~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:491:8: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/catalog/collection_impl.cpp: In member function 'virtual mongo::Status mongo::CollectionImpl::insertDocuments(mongo::OperationContext*, std::vector::const_iterator, std::vector::const_iterator, mongo::OpDebug*, bool, bool)': src/mongo/db/catalog/collection_impl.cpp:350:8: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 350 | Status CollectionImpl::insertDocuments(OperationContext* opCtx, | ^~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:350:8: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/catalog/collection_impl.cpp:388:78: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 388 | Status status = _insertDocuments(opCtx, begin, end, enforceQuota, opDebug); | ^ src/mongo/db/catalog/collection_impl.cpp:388:78: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/catalog/collection_impl.cpp:393:58: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 393 | getGlobalServiceContext()->getOpObserver()->onInserts( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 394 | opCtx, ns(), uuid(), begin, end, fromMigrate); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:393:58: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Status mongo::CollectionImpl::insertDocument(mongo::OperationContext*, const mongo::InsertStatement&, mongo::OpDebug*, bool, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:428:95: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 428 | return insertDocuments(opCtx, docs.begin(), docs.end(), opDebug, enforceQuota, fromMigrate); | ^ src/mongo/db/catalog/collection_impl.cpp:428:95: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::Status mongo::CollectionImpl::insertDocument(mongo::OperationContext*, const mongo::BSONObj&, const std::vector&, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/catalog/collection_impl.cpp:482:58: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 482 | getGlobalServiceContext()->getOpObserver()->onInserts( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 483 | opCtx, ns(), uuid(), inserts.begin(), inserts.end(), false); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:482:58: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/split_horizon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/split_horizon.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbi.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbbi.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.c ar rcsTD build/opt/mongo/db/catalog/libcatalog_impl.a build/opt/mongo/db/catalog/catalog_control.o build/opt/mongo/db/catalog/collection_compact.o build/opt/mongo/db/catalog/collection_impl.o build/opt/mongo/db/catalog/collection_info_cache_impl.o build/opt/mongo/db/catalog/database_holder_impl.o build/opt/mongo/db/catalog/database_impl.o build/opt/mongo/db/catalog/index_catalog_entry_impl.o build/opt/mongo/db/catalog/index_catalog_impl.o build/opt/mongo/db/catalog/index_consistency.o build/opt/mongo/db/catalog/index_create_impl.o build/opt/mongo/db/catalog/private/record_store_validate_adaptor.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcatalog_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_limit.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_client_cursor_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/cluster_client_cursor_impl.cpp ar rcsTD build/opt/mongo/db/liblogical_time_validator.a build/opt/mongo/db/logical_time_validator.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_time_validator.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/touch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/touch.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/logstream_builder.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/remtrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/remtrans.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationroot.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationroot.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/shim.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/shim.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unistr.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.c src/mongo/db/pipeline/document_source_limit.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceLimit::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_limit.cpp:99:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 99 | intrusive_ptr DocumentSourceLimit::createFromBson( | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/pipeline/document_source_limit.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_limit(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_limit.cpp:50:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 50 | REGISTER_DOCUMENT_SOURCE(limit, | ^~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/stats/libserver_read_concern_write_concern_metrics.a build/opt/mongo/db/stats/server_read_concern_metrics.o build/opt/mongo/db/stats/server_write_concern_metrics.o build/opt/mongo/db/stats/read_concern_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libserver_read_concern_write_concern_metrics.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection_standalone.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/db_raii.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/db_raii.cpp ar rcsTD build/opt/mongo/s/query/libcluster_client_cursor.a build/opt/mongo/s/query/cluster_client_cursor_impl.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_client_cursor.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uchriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uchriter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_file_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_file_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/write_conflict_exception.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/authenticate.cpp 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/session.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/client/authenticate.cpp: In function 'mongo::StatusWith > mongo::auth::{anonymous}::extractDBField(const mongo::BSONObj&)': src/mongo/client/authenticate.cpp:87:21: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(db); | ~~~~~~~~~^~~~ src/mongo/client/authenticate.cpp:87:21: note: remove 'std::move' call src/mongo/client/authenticate.cpp: In function 'mongo::auth::AuthRequest mongo::auth::{anonymous}::createX509AuthCmd(const mongo::BSONObj&, mongo::StringData)': src/mongo/client/authenticate.cpp:134:21: warning: redundant move in return statement [-Wredundant-move] 134 | return std::move(request); | ~~~~~~~~~^~~~~~~~~ src/mongo/client/authenticate.cpp:134:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucase.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucase.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.c ar rcsTD build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.o Skipping ranlib for thin archive build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_storage_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_storage_engine.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/client/libauthentication.a build/opt/mongo/client/authenticate.o Skipping ranlib for thin archive build/opt/mongo/client/libauthentication.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/hasher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/hasher.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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 Skipping ranlib for thin archive build/opt/mongo/db/concurrency/libwrite_conflict_exception.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tzfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/async_results_merger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/async_results_merger.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_init.cpp ar rcsTD build/opt/mongo/db/libdb_raii.a build/opt/mongo/db/db_raii.o Skipping ranlib for thin archive build/opt/mongo/db/libdb_raii.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/delete.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uresdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uresdata.cpp src/mongo/s/query/async_results_merger.cpp: In static member function 'static mongo::StatusWith mongo::AsyncResultsMerger::_parseCursorResponse(const mongo::BSONObj&, const mongo::AsyncResultsMerger::RemoteCursorData&)': src/mongo/s/query/async_results_merger.cpp:500:21: warning: redundant move in return statement [-Wredundant-move] 500 | return std::move(cursorResponse); | ~~~~~~~~~^~~~~~~~~~~~~~~~ src/mongo/s/query/async_results_merger.cpp:500:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/reply_builder_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/reply_builder_interface.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/command_reply.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/command_reply.cpp ar rcsTD build/opt/mongo/db/storage/libstorage_init_d.a build/opt/mongo/db/storage/storage_init.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_init_d.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/current_date_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/current_date_node.h:33, from src/mongo/db/update/current_date_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/current_date_node.h:33, from src/mongo/db/update/current_date_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/s/query/async_results_merger.h:34, from src/mongo/s/query/async_results_merger.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::HostAndPort&, const mongo::NamespaceString&, long long int}; _Tp = mongo::AsyncResultsMerger::RemoteCursorData; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const mongo::HostAndPort&, const mongo::NamespaceString&, long long int}; _Tp = mongo::AsyncResultsMerger::RemoteCursorData; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/util/coding/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/coding/varint.cc ar rcsTD build/opt/mongo/rpc/libcommand_reply.a build/opt/mongo/rpc/command_reply.o build/opt/mongo/rpc/command_reply_builder.o build/opt/mongo/rpc/reply_builder_interface.o Skipping ranlib for thin archive build/opt/mongo/rpc/libcommand_reply.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/nfrule.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locdispnames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/locdispnames.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_management_commands_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_management_commands_parser.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/bson_comparator_interface_base.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.c /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 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:56:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 56 | Status CurrentDateNode::init(BSONElement modExpr, | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/background_thread_clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/background_thread_clock_source.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/session_update_tracker.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_settings.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.cpp:31: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/session_update_tracker.h:35, from src/mongo/db/repl/session_update_tracker.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::repl::OplogEntry}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/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:64:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 64 | void BSONComparatorInterfaceBase::hashCombineBSONElement( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:64:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/bson/bsonobj.h:45, from src/mongo/db/repl/session_update_tracker.h:37, from src/mongo/db/repl/session_update_tracker.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::erase(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator) [with _Key = mongo::LogicalSessionId; _Value = std::pair; _Alloc = std::allocator >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to; _H1 = mongo::LogicalSessionIdHash; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:1849:5: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::LogicalSessionIdHash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 1849 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | _H1, _H2, _Hash, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::vector mongo::repl::SessionUpdateTracker::_flushForQueryPredicate(const mongo::BSONObj&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::LogicalSessionIdHash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ 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:54:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 54 | hashCombineBSONElement(seed, iter.next(), rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:58:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 58 | 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:64:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 64 | 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:54:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 54 | hashCombineBSONElement(seed, iter.next(), rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:58:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 58 | hashCombineBSONElement(seed, elem, rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/bytestream.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_case.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unistr_case.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/write_commands/write_commands_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/write_commands/write_commands_common.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/key_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/key_string.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_entry_point_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_entry_point_common.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/unset_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/unset_node.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/unset_node.h:33, from src/mongo/db/update/unset_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/unset_node.h:33, from src/mongo/db/update/unset_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/normalizer2impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/normalizer2impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.c src/mongo/db/update/unset_node.cpp: In member function 'virtual mongo::Status mongo::UnsetNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/unset_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status UnsetNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_match.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_graph_lookup.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_graph_lookup.cpp ar rcsTD build/opt/mongo/db/storage/libkey_string.a build/opt/mongo/db/storage/key_string.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libkey_string.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_change_stream_close_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/matcher.h:39, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/matcher.h:39, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher.h:40, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher.h:40, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_match.cpp:37: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_graph_lookup.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceGraphLookUp::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_graph_lookup.cpp:604:21: warning: redundant move in return statement [-Wredundant-move] 604 | return std::move(newSource); | ~~~~~~~~~^~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp:604:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher.h:40, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/bson/mutable/element.h:37, from src/mongo/db/auth/privilege.h:35, from src/mongo/db/commands.h:41, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/service_entry_point_common.cpp: In function 'void mongo::{anonymous}::execCommandDatabase(mongo::OperationContext*, mongo::Command*, const mongo::OpMsgRequest&, mongo::rpc::ReplyBuilderInterface*, const mongo::ServiceEntryPointCommon::Hooks&)': src/mongo/db/service_entry_point_common.cpp:832:57: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 832 | uassertStatusOK(QueryRequest::parseMaxTimeMS(cmdOptionMaxTimeMSField)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sort_by_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sort_by_count.cpp src/mongo/db/pipeline/document_source_match.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceMatch::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_match.cpp:471:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 471 | intrusive_ptr DocumentSourceMatch::createFromBson( | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_match.h:38, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/pipeline/document_source_match.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_match(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_match.cpp:56:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 56 | REGISTER_DOCUMENT_SOURCE(match, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/client/dbclientinterface.h:36, from src/mongo/client/connpool.h:38, from src/mongo/db/pipeline/document_source_match.h:36, from src/mongo/db/pipeline/document_source_match.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/pipeline/document_source_match.cpp: In function 'mongo::Document mongo::{anonymous}::redactSafePortionDollarOps(mongo::BSONObj)': src/mongo/db/pipeline/document_source_match.cpp:200:97: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 200 | PathAcceptingKeyword::EQUALITY)) { | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_current_op.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_redact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_redact.cpp 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/initializer_dependency_graph.h:40, from src/mongo/base/initializer.h:38, from src/mongo/base/init.h:49, from src/mongo/db/pipeline/document_source.h:42, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::erase(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator) [with _Key = mongo::Value; _Value = std::pair; _Alloc = std::allocator >; _ExtractKey = std::__detail::_Select1st; _Equal = mongo::ValueComparator::EqualTo; _H1 = mongo::ValueComparator::Hasher; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:1849:5: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, mongo::ValueComparator::EqualTo, mongo::ValueComparator::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 1849 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | _H1, _H2, _Hash, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceGraphLookUp::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_graph_lookup.cpp:508:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 508 | intrusive_ptr DocumentSourceGraphLookUp::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp:525:49: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 525 | startWith = Expression::parseOperand(expCtx, argument, vps); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/pipeline/document_source_graph_lookup.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_graphLookup(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp:83:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 83 | REGISTER_DOCUMENT_SOURCE(graphLookup, | ^~~~~~~~~~~~~~~~~~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/initializer_dependency_graph.h:40, from src/mongo/base/initializer.h:38, from src/mongo/base/init.h:49, from src/mongo/db/pipeline/document_source.h:42, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'mongo::DocumentSource::GetNextResult mongo::DocumentSourceGraphLookUp::getNextUnwound()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, mongo::ValueComparator::EqualTo, mongo::ValueComparator::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceGraphLookUp::getNext()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, mongo::ValueComparator::EqualTo, mongo::ValueComparator::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_internal_inhibit_optimization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:35, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ src/mongo/db/pipeline/document_source_sort_by_count.cpp: In static member function 'static std::__cxx11::list > mongo::DocumentSourceSortByCount::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_sort_by_count.cpp:50:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 50 | list> DocumentSourceSortByCount::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sort_by_count.cpp:78:92: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | auto groupSource = DocumentSourceGroup::createFromBson(groupObj.firstElement(), pExpCtx); | ^ src/mongo/db/pipeline/document_source_sort_by_count.cpp:79:89: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 79 | auto sortSource = DocumentSourceSort::createFromBson(sortObj.firstElement(), pExpCtx); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_list_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_sessions.cpp src/mongo/db/pipeline/document_source_current_op.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceCurrentOp::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_current_op.cpp:175:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 175 | intrusive_ptr DocumentSourceCurrentOp::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_current_op.cpp:175:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/pipeline/document_source_current_op.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_currentOp(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_current_op.cpp:54:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 54 | REGISTER_DOCUMENT_SOURCE(currentOp, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_change_stream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/document_source_list_sessions.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/document_source_list_sessions.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/document_source_list_sessions.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value&}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Value mongo::DocumentSourceRedact::redactValue(const mongo::Value&, const mongo::Document&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/document_source_list_sessions.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_redact.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceRedact::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_redact.cpp:175:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 175 | intrusive_ptr DocumentSourceRedact::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_redact.cpp:182:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 182 | intrusive_ptr expression = Expression::parseOperand(expCtx, elem, vps); | ^ In file included from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/pipeline/document_source_redact.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_redact(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_redact.cpp:53:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 53 | REGISTER_DOCUMENT_SOURCE(redact, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_geo_near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_geo_near.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceInternalInhibitOptimization::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:43:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 43 | boost::intrusive_ptr DocumentSourceInternalInhibitOptimization::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap__internalInhibitOptimization(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:37:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 37 | REGISTER_DOCUMENT_SOURCE(_internalInhibitOptimization, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_group.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/document_source_list_sessions.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_group.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_group.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/document_source_list_sessions.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceListSessions::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_list_sessions.cpp:49:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 49 | boost::intrusive_ptr DocumentSourceListSessions::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_sessions.h:34, from src/mongo/db/pipeline/document_source_list_sessions.cpp:37: src/mongo/db/pipeline/document_source_list_sessions.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_listSessions(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_list_sessions.cpp:45:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 45 | REGISTER_DOCUMENT_SOURCE(listSessions, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/pipeline.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_group.h:38, from src/mongo/db/pipeline/document_source_group.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_group.h:38, from src/mongo/db/pipeline/document_source_group.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_group.cpp: In member function 'mongo::DocumentSource::GetNextResult mongo::DocumentSourceGroup::getNextStandard()': src/mongo/db/pipeline/document_source_group.cpp:149:21: warning: redundant move in return statement [-Wredundant-move] 149 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_group.cpp:149:21: note: remove 'std::move' call src/mongo/db/pipeline/document_source_group.cpp: In member function 'mongo::DocumentSource::GetNextResult mongo::DocumentSourceGroup::getNextStreaming()': src/mongo/db/pipeline/document_source_group.cpp:190:21: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_group.cpp:190: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:35, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_geo_near.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceGeoNear::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_geo_near.cpp:205:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 205 | intrusive_ptr DocumentSourceGeoNear::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/pipeline/document_source_geo_near.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_geoNear(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_geo_near.cpp:48:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 48 | REGISTER_DOCUMENT_SOURCE(geoNear, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sort.cpp src/mongo/db/pipeline/document_source_change_stream.cpp: In static member function 'static std::__cxx11::list > mongo::DocumentSourceChangeStream::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_change_stream.cpp:472:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 472 | list> DocumentSourceChangeStream::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_group.h:38, from src/mongo/db/pipeline/document_source_group.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/pipeline.cpp: In static member function 'static mongo::StatusWith > mongo::Pipeline::createTopLevelOrFacetPipeline(mongo::Pipeline::SourceContainer, const boost::intrusive_ptr&, bool)': src/mongo/db/pipeline/pipeline.cpp:131:21: warning: redundant move in return statement [-Wredundant-move] 131 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/pipeline.cpp:131:21: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_tee_consumer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path_traits.hpp:26, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path.hpp:26, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/operations.hpp:25, from src/mongo/db/pipeline/document_source_group.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_group.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceGroup::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_group.cpp:362:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 362 | intrusive_ptr DocumentSourceGroup::createFromBson( | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_group.h:38, from src/mongo/db/pipeline/document_source_group.cpp:39: src/mongo/db/pipeline/document_source_group.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_group(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_group.cpp:73:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 73 | REGISTER_DOCUMENT_SOURCE(group, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_unwind.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_unwind.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_skip.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_coll_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_coll_stats.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/document_source_sort.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceSort::create(const boost::intrusive_ptr&, mongo::BSONObj, long long int, uint64_t, bool)': src/mongo/db/pipeline/document_source_sort.cpp:295:59: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 295 | patternPart.expression = ExpressionMeta::parse(pExpCtx, metaDoc.firstElement(), vps); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sort.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceSort::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_sort.cpp:255:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 255 | intrusive_ptr DocumentSourceSort::createFromBson( | ^~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/pipeline/document_source_sort.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_sort(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sort.cpp:122:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 122 | REGISTER_DOCUMENT_SOURCE(sort, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 std::pair&}; _Tp = std::pair; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector, std::allocator > >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 326 | __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 243 | __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:69, from src/mongo/db/concurrency/lock_manager.h:34, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/operation_context.h:39, from src/mongo/db/index/sort_key_generator.h:35, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Deque_iterator, const std::pair&, const std::pair*>; _Tp = std::pair; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 441 | deque<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::move_backward(_BI1, _BI1, _BI2) [with _BI1 = std::_Deque_iterator, std::pair&, std::pair*>; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 676 | move_backward(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::move(_II, _II, _OI) [with _II = std::_Deque_iterator, std::pair&, std::pair*>; _OI = std::pair*]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 497 | move(_II __first, _II __last, _OI __result) | ^~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::sort() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::spill() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2116:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2116 | return std::__upper_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2117 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::sorter::TopKSorter::add(const Key&, const Value&) [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:397:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 397 | std::__make_heap(__first, __last, __cmp); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:320:19: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 320 | std::__pop_heap(__first, __last, __last, __cmp); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_unwind.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceUnwind::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_unwind.cpp:257:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 257 | intrusive_ptr DocumentSourceUnwind::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/pipeline/document_source_unwind.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_unwind(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_unwind.cpp:170:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 170 | REGISTER_DOCUMENT_SOURCE(unwind, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2651 | return _GLIBCXX_MOVE3(__first2, __last2, | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _Distance, _Compare) [with _RandomAccessIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _RandomAccessIterator2 = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2659:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2659 | __merge_sort_loop(_RandomAccessIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2659:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = std::pair*; _OI = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:438:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 438 | __copy_move_a2(_II __first, _II __last, _OI __result) | ^~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2714:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2714 | std::__merge_sort_loop(__first, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2715 | __step_size, __comp); | ~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::__copy_move_backward_a2(_BI1, _BI1, _BI2) [with bool _IsMove = true; _BI1 = std::pair*; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 613 | __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2384:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2384 | __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2385 | _GLIBCXX_MOVE_BACKWARD3(__first, __middle, __last); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2395:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2395 | __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2419:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2419 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2425:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2425 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::NoLimitSorter::sort() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:67, from src/mongo/db/concurrency/lock_manager.h:34, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/operation_context.h:39, from src/mongo/db/index/sort_key_generator.h:35, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In member function 'mongo::sorter::NoLimitSorter::Iterator* mongo::sorter::NoLimitSorter::done() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 1906 | _M_range_initialize(__first, __last, | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_count.cpp src/mongo/db/pipeline/document_source_skip.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceSkip::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_skip.cpp:106:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 106 | intrusive_ptr DocumentSourceSkip::createFromBson( | ^~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/pipeline/document_source_skip.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_skip(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_skip.cpp:51:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 51 | REGISTER_DOCUMENT_SOURCE(skip, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_list_local_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_local_cursors.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_lookup_change_post_image.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_coll_stats.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceCollStats::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_coll_stats.cpp:53:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 53 | intrusive_ptr DocumentSourceCollStats::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/pipeline/document_source_coll_stats.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_collStats(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_coll_stats.cpp:45:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 45 | REGISTER_DOCUMENT_SOURCE(collStats, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_facet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_facet.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_list_local_cursors.cpp: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceListLocalCursors::getNext()': src/mongo/db/pipeline/document_source_list_local_cursors.cpp:55:25: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(doc); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_list_local_cursors.cpp:55:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:35, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ src/mongo/db/pipeline/document_source_count.cpp: In static member function 'static std::__cxx11::list > mongo::DocumentSourceCount::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_count.cpp:51:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 51 | list> DocumentSourceCount::createFromBson( | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_count.cpp:76:92: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 76 | auto groupSource = DocumentSourceGroup::createFromBson(groupObj.firstElement(), pExpCtx); | ^ src/mongo/db/pipeline/document_source_count.cpp:77:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 77 | auto projectSource = DocumentSourceProject::createFromBson(projectObj.firstElement(), pExpCtx); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_out.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_out.cpp src/mongo/db/pipeline/document_source_list_local_cursors.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceListLocalCursors::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_list_local_cursors.cpp:61:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 61 | boost::intrusive_ptr DocumentSourceListLocalCursors::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/pipeline/document_source_list_local_cursors.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_listLocalCursors(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:108:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 108 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY( \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_list_local_cursors.cpp:43:1: note: in expansion of macro 'REGISTER_TEST_DOCUMENT_SOURCE' 43 | REGISTER_TEST_DOCUMENT_SOURCE(listLocalCursors, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utf8collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/utf8collationiterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_leaf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_leaf.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/brktrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/brktrans.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ustrfmt.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 -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 -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/ustrfmt.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrmbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/csrmbcs.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/establish_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/establish_cursors.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_leaf.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_leaf.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_leaf.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_leaf.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Document}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceFacet::getNext()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/pipeline/document_source_facet.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceFacet::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_facet.cpp:295:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 295 | intrusive_ptr DocumentSourceFacet::createFromBson( | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_facet.cpp:295:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/pipeline/document_source_facet.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_facet(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_facet.cpp:146:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 146 | REGISTER_DOCUMENT_SOURCE(facet, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp: In member function 'virtual std::unique_ptr mongo::InMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.cpp:386:21: warning: redundant move in return statement [-Wredundant-move] 386 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_leaf.cpp:386:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.cpp: In lambda function: src/mongo/db/matcher/expression_leaf.cpp:550:29: warning: redundant move in return statement [-Wredundant-move] 550 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp:550:29: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.cpp:560:29: warning: redundant move in return statement [-Wredundant-move] 560 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp:560:29: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/session_txn_record_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_leaf.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/document_source_out.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceOut::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_out.cpp:222:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 222 | intrusive_ptr DocumentSourceOut::createFromBson( | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/pipeline/document_source_out.cpp: 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 = mongo::_mongoInitializerFunction_addToDocSourceParserMap_out(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_out.cpp:77:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 77 | REGISTER_DOCUMENT_SOURCE(out, DocumentSourceOut::liteParse, DocumentSourceOut::createFromBson); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_leaf.h:33, from src/mongo/db/matcher/expression_leaf.cpp:33: 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:69:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/query/establish_cursors.h:34, from src/mongo/s/query/establish_cursors.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RemoteCursor}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::RemoteCursor}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/pipeline/libpipeline.a build/opt/mongo/db/pipeline/document_source.o build/opt/mongo/db/pipeline/document_source_add_fields.o build/opt/mongo/db/pipeline/document_source_bucket.o build/opt/mongo/db/pipeline/document_source_bucket_auto.o build/opt/mongo/db/pipeline/document_source_change_stream.o build/opt/mongo/db/pipeline/document_source_change_stream_close_cursor.o build/opt/mongo/db/pipeline/document_source_change_stream_transform.o build/opt/mongo/db/pipeline/document_source_check_invalidate.o build/opt/mongo/db/pipeline/document_source_check_resume_token.o build/opt/mongo/db/pipeline/document_source_coll_stats.o build/opt/mongo/db/pipeline/document_source_count.o build/opt/mongo/db/pipeline/document_source_current_op.o build/opt/mongo/db/pipeline/document_source_facet.o build/opt/mongo/db/pipeline/document_source_geo_near.o build/opt/mongo/db/pipeline/document_source_graph_lookup.o build/opt/mongo/db/pipeline/document_source_group.o build/opt/mongo/db/pipeline/document_source_index_stats.o build/opt/mongo/db/pipeline/document_source_internal_inhibit_optimization.o build/opt/mongo/db/pipeline/document_source_internal_split_pipeline.o build/opt/mongo/db/pipeline/document_source_limit.o build/opt/mongo/db/pipeline/document_source_list_local_cursors.o build/opt/mongo/db/pipeline/document_source_list_local_sessions.o build/opt/mongo/db/pipeline/document_source_list_sessions.o build/opt/mongo/db/pipeline/document_source_lookup.o build/opt/mongo/db/pipeline/document_source_lookup_change_post_image.o build/opt/mongo/db/pipeline/document_source_match.o build/opt/mongo/db/pipeline/document_source_merge_cursors.o build/opt/mongo/db/pipeline/document_source_out.o build/opt/mongo/db/pipeline/document_source_project.o build/opt/mongo/db/pipeline/document_source_redact.o build/opt/mongo/db/pipeline/document_source_replace_root.o build/opt/mongo/db/pipeline/document_source_sample.o build/opt/mongo/db/pipeline/document_source_sample_from_random_cursor.o build/opt/mongo/db/pipeline/document_source_sequential_document_cache.o build/opt/mongo/db/pipeline/document_source_single_document_transformation.o build/opt/mongo/db/pipeline/document_source_skip.o build/opt/mongo/db/pipeline/document_source_sort.o build/opt/mongo/db/pipeline/document_source_sort_by_count.o build/opt/mongo/db/pipeline/cluster_aggregation_planner.o build/opt/mongo/db/pipeline/document_source_tee_consumer.o build/opt/mongo/db/pipeline/document_source_unwind.o build/opt/mongo/db/pipeline/document_source_watch_for_uuid.o build/opt/mongo/db/pipeline/mongo_process_common.o build/opt/mongo/db/pipeline/pipeline.o build/opt/mongo/db/pipeline/sequential_document_cache.o build/opt/mongo/db/pipeline/tee_buffer.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libpipeline.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/options_parser_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/options_parser_init.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/base/string_data_comparator_interface.h:36, from src/mongo/bson/bsonelement_comparator.h:33, from src/mongo/db/matcher/expression_leaf.h:33, from src/mongo/db/matcher/expression_leaf.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > >; _Distance = int; _Tp = mongo::BSONElement; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::LessThan>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::LessThan>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:342:22: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 342 | std::__adjust_heap(__first, __parent, __len, _GLIBCXX_MOVE(__value), | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 343 | __comp); | ~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:342:22: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:253:25: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 253 | std::__adjust_heap(__first, _DistanceType(0), | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 254 | _DistanceType(__last - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 255 | _GLIBCXX_MOVE(__value), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:253:25: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::LessThan>]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:253:25: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 253 | std::__adjust_heap(__first, _DistanceType(0), | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 254 | _DistanceType(__last - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 255 | _GLIBCXX_MOVE(__value), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:253:25: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_timelib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/timelib-2018.01alpha1 src/third_party/shim_timelib.cpp ar rcsTD build/opt/third_party/libshim_timelib.a build/opt/third_party/shim_timelib.o Skipping ranlib for thin archive build/opt/third_party/libshim_timelib.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitgrouping.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/digitgrouping.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/user_management_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/user_management_commands.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/parsed_update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/parsed_update.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/text_or.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/text_or.cpp ar rcsTD build/opt/mongo/util/options_parser/liboptions_parser_init.a build/opt/mongo/util/options_parser/options_parser_init.o Skipping ranlib for thin archive build/opt/mongo/util/options_parser/liboptions_parser_init.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/skip.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/ops/parsed_update.h:37, from src/mongo/db/ops/parsed_update.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/ops/parsed_update.h:37, from src/mongo/db/ops/parsed_update.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/reldtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/reldtfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbitblb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbbitblb.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/secure_compare_memory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/secure_compare_memory.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uarrsort.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 -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 -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/uarrsort.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/granularity_rounder_powers_of_two.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/ops/parsed_update.h:37, from src/mongo/db/ops/parsed_update.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::IndexKeyMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/granularity_rounder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder.cpp ar rcsTD build/opt/mongo/db/libwire_version.a build/opt/mongo/db/wire_version.o Skipping ranlib for thin archive build/opt/mongo/db/libwire_version.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonobj.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/bsonobj.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/pipeline/libgranularity_rounder.a build/opt/mongo/db/pipeline/granularity_rounder.o build/opt/mongo/db/pipeline/granularity_rounder_powers_of_two.o build/opt/mongo/db/pipeline/granularity_rounder_preferred_numbers.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libgranularity_rounder.a 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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_protocol_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp ar rcsTD build/opt/mongo/db/auth/libuser.a build/opt/mongo/db/auth/user.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libuser.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_applier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_applier.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/data_type.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rs_rollback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rs_rollback.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/repl/oplog_applier.cpp: In member function 'mongo::StatusWith > mongo::repl::OplogApplier::getNextApplierBatch(mongo::OperationContext*, const mongo::repl::OplogApplier::BatchLimits&)': src/mongo/db/repl/oplog_applier.cpp:122:29: warning: redundant move in return statement [-Wredundant-move] 122 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:122:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:127:29: warning: redundant move in return statement [-Wredundant-move] 127 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:127:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:132:29: warning: redundant move in return statement [-Wredundant-move] 132 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:132:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:142:21: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:142:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/oplog_applier.h:35, from src/mongo/db/repl/oplog_applier.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::repl::OplogEntry}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_application.a build/opt/mongo/db/repl/applier_helpers.o build/opt/mongo/db/repl/oplog_applier.o build/opt/mongo/db/repl/session_update_tracker.o build/opt/mongo/db/repl/sync_tail.o 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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_application.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_elect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_elect.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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/repl/rs_rollback.cpp:40: 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:69:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/freshness_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/freshness_checker.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_month.hpp:18, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_ymd.hpp:16, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_calendar.hpp:17, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/gregorian_types.hpp:19, from src/mongo/util/time_support.h:35, from src/mongo/bson/timestamp.h:36, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::OpTime; _Val = mongo::repl::OpTime; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2518 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'void mongo::repl::ReplicationCoordinatorImpl::_cleanupStableOpTimeCandidates(std::set*, mongo::repl::OpTime)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1248:2: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1248 | _M_erase_aux(__first, __last); | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/repl/rs_rollback.cpp: In member function 'mongo::Status mongo::repl::rollback_internal::FixUpInfo::recordDropTargetInfo(const mongo::BSONElement&, const mongo::BSONObj&, mongo::repl::OpTime)': src/mongo/db/repl/rs_rollback.cpp:195:67: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 195 | StatusWith dropTargetUUIDStatus = UUID::parse(dropTarget); | ^ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'mongo::repl::ReplicationCoordinatorImpl::PostMemberStateUpdateAction mongo::repl::ReplicationCoordinatorImpl::_updateMemberStateFromTopologyCoordinator_inlock(mongo::OperationContext*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1248:2: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1248 | _M_erase_aux(__first, __last); | ^~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/freshness_checker.h:33, from src/mongo/db/repl/freshness_checker.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RemoteCommandRequest}; _Tp = mongo::executor::RemoteCommandRequest; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual std::vector mongo::repl::FreshnessChecker::Algorithm::getRequests() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, 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/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, 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/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/check_quorum_for_config_change.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/elect_cmd_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/elect_cmd_runner.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/stacktrace.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/stacktrace.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/scatter_gather_algorithm.h:33, from src/mongo/db/repl/check_quorum_for_config_change.h:34, from src/mongo/db/repl/check_quorum_for_config_change.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RemoteCommandRequest}; _Tp = mongo::executor::RemoteCommandRequest; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/elect_cmd_runner.h:33, from src/mongo/db/repl/elect_cmd_runner.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RemoteCommandRequest}; _Tp = mongo::executor::RemoteCommandRequest; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual std::vector mongo::repl::QuorumChecker::getRequests() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual std::vector mongo::repl::ElectCmdRunner::Algorithm::getRequests() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, 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::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.c ar rcsTD build/opt/mongo/util/libperiodic_runner_factory.a build/opt/mongo/util/periodic_runner_factory.o Skipping ranlib for thin archive build/opt/mongo/util/libperiodic_runner_factory.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol_res.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_res.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/index_entry_comparison.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/index_entry_comparison.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitaffix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/digitaffix.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/simpleformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/simpleformatter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_where.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where.cpp ar rcsTD build/opt/mongo/db/storage/libindex_entry_comparison.a build/opt/mongo/db/storage/index_entry_comparison.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libindex_entry_comparison.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where.h:33, from src/mongo/db/matcher/expression_where.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/pipeline_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/pipeline_proxy.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where.h:33, from src/mongo/db/matcher/expression_where.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_where.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_where.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_where.cpp: In member function 'virtual std::unique_ptr mongo::WhereMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_where.cpp:108:21: warning: redundant move in return statement [-Wredundant-move] 108 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_where.cpp:108:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: 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/elect_cmd_runner.o build/opt/mongo/db/repl/freshness_checker.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.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 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_coordinator_impl.a 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transaction_reaper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/transaction_reaper.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_where.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.c 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatabuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationdatabuilder.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_connection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/shard_connection.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_options.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.c ar rcsTD build/opt/third_party/libshim_snappy.a build/opt/third_party/shim_snappy.o Skipping ranlib for thin archive build/opt/third_party/libshim_snappy.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/windtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/windtfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/pop_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/pop_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/pop_node.h:33, from src/mongo/db/update/pop_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/pop_node.h:33, from src/mongo/db/update/pop_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/update/pop_node.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/update/pop_node.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/usprep.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/usprep.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/rs_local_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/rs_local_client.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/log_process_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/log_process_details.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/update/pop_node.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/update/pop_node.cpp: In member function 'virtual mongo::Status mongo::PopNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/pop_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status PopNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~ src/mongo/db/update/pop_node.cpp:40:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 40 | auto popVal = MatchExpressionParser::parseIntegerElementToLong(modExpr); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/invalidate_view_catalog_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/invalidate_view_catalog_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/write_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/write_op.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationdata.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/putil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/putil.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/push_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/push_node.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/oplog_note.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/oplog_note.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/curramt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/curramt.cpp /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/push_node.h:37, from src/mongo/db/update/push_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/push_node.h:37, from src/mongo/db/update/push_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_find.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/cluster_find.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/update/push_node.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/update/push_node.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:344: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_query_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/cluster_query_knobs.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/update/push_node.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fail_point_registry.cpp src/mongo/db/update/push_node.cpp: In member function 'virtual mongo::Status mongo::PushNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/push_node.cpp:87:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 87 | Status PushNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~~ src/mongo/db/update/push_node.cpp:133:97: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 133 | auto parsedSliceValue = MatchExpressionParser::parseIntegerElementToLong(sliceClause); | ^ src/mongo/db/update/push_node.cpp:177:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 177 | MatchExpressionParser::parseIntegerElementToLong(positionClause); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_liaison_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_liaison_mongos.cpp src/mongo/s/query/cluster_find.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::transformQueryForShards(const mongo::QueryRequest&, bool)': src/mongo/s/query/cluster_find.cpp:170:21: warning: redundant move in return statement [-Wredundant-move] 170 | return std::move(newQR); | ~~~~~~~~~^~~~~~~ src/mongo/s/query/cluster_find.cpp:170:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtptngen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dtptngen.cpp 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/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/time_support.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrucode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/csrucode.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/task_executor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/executor/libtask_executor_interface.a build/opt/mongo/executor/task_executor.o Skipping ranlib for thin archive build/opt/mongo/executor/libtask_executor_interface.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/database.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fail_point.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_time.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_time.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/operation_time_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/operation_time_tracker.cpp ar rcsTD build/opt/mongo/s/query/libcluster_query.a build/opt/mongo/s/query/cluster_find.o build/opt/mongo/s/query/cluster_query_knobs.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_query.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/reporter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/reporter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/aggregation_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/aggregation_request.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblogical_time.a build/opt/mongo/db/logical_time.o build/opt/mongo/db/operation_time_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_time.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_cache.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libdatabase.a build/opt/mongo/db/catalog/database.o 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/catalog/libdatabase.a 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libreporter.a build/opt/mongo/db/repl/reporter.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreporter.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_remove_metadata_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/router_stage_remove_metadata_fields.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/aggregation_request.cpp: In static member function 'static mongo::StatusWith > > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.cpp:83:21: warning: redundant move in return statement [-Wredundant-move] 83 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.cpp:83:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/s/query/router_stage_remove_metadata_fields.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/s/query/router_stage_remove_metadata_fields.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/router_stage_skip.cpp In file included from src/mongo/db/query/plan_cache.cpp:46: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: 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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_merge.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/router_stage_merge.cpp src/mongo/db/pipeline/aggregation_request.cpp:68:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 68 | StatusWith> AggregationRequest::parsePipelineFromBSON( | ^~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/query/router_stage_pipeline.cpp src/mongo/db/pipeline/aggregation_request.cpp: In static member function 'static mongo::StatusWith mongo::AggregationRequest::parseFromBSON(mongo::NamespaceString, const mongo::BSONObj&, boost::optional)': src/mongo/db/pipeline/aggregation_request.cpp:99:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 99 | auto pipeline = AggregationRequest::parsePipelineFromBSON(pipelineElem); | ^ src/mongo/db/pipeline/aggregation_request.cpp:143:63: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 143 | auto maxTimeMs = QueryRequest::parseMaxTimeMS(elem); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/bocsu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/bocsu.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/shutdown_d.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/collection_index_usage_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/collection_index_usage_tracker.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csmatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/csmatch.cpp ar rcsTD build/opt/mongo/s/query/librouter_exec_stage.a build/opt/mongo/s/query/document_source_router_adapter.o build/opt/mongo/s/query/router_stage_limit.o build/opt/mongo/s/query/router_stage_merge.o build/opt/mongo/s/query/router_stage_mock.o build/opt/mongo/s/query/router_stage_pipeline.o build/opt/mongo/s/query/router_stage_remove_metadata_fields.o build/opt/mongo/s/query/router_stage_skip.o build/opt/mongo/s/query/router_stage_update_on_add_shard.o Skipping ranlib for thin archive build/opt/mongo/s/query/librouter_exec_stage.a ar rcsTD build/opt/mongo/db/catalog/libindex_key_validate.a build/opt/mongo/db/catalog/index_key_validate.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_key_validate.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/crypto/sha256_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/crypto/sha256_block.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/extensions_callback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unorm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unorm.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/sharding_connection_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/sharding_connection_hook.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/sharding_initialization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/sharding_initialization.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/field_path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/field_path.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libfield_path.a build/opt/mongo/db/pipeline/field_path.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libfield_path.a 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_spec_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_spec_legacy.cpp src/mongo/db/matcher/extensions_callback.cpp: In static member function 'static mongo::StatusWith mongo::ExtensionsCallback::extractTextMatchExpressionParams(mongo::BSONElement)': src/mongo/db/matcher/extensions_callback.cpp:40:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 40 | ExtensionsCallback::extractTextMatchExpressionParams(BSONElement text) { | ^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback.cpp: In static member function 'static mongo::StatusWith mongo::ExtensionsCallback::extractWhereMatchExpressionParams(mongo::BSONElement)': src/mongo/db/matcher/extensions_callback.cpp:102:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 102 | ExtensionsCallback::extractWhereMatchExpressionParams(BSONElement where) { | ^~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.c ar rcsTD build/opt/mongo/db/repl/librollback_source_impl.a build/opt/mongo/db/repl/rollback_source_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_source_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/grid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/grid.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/shard_factory.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/balancer_configuration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/balancer_configuration.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/shard_registry.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libsharding_initialization.a build/opt/mongo/s/sharding_initialization.o build/opt/mongo/s/client/sharding_connection_hook.o build/opt/mongo/s/client/sharding_network_connection_hook.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_initialization.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/concurrency/idle_thread_block.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/latency_server_status_section.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_consistency_markers_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/json_schema_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/json_schema_parser.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/json_schema_parser.h:34, from src/mongo/db/matcher/schema/json_schema_parser.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_type.h:33, from src/mongo/db/matcher/schema/json_schema_parser.h:35, from src/mongo/db/matcher/schema/json_schema_parser.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libgrid.a build/opt/mongo/s/balancer_configuration.o build/opt/mongo/s/catalog_cache.o build/opt/mongo/s/client/shard_factory.o build/opt/mongo/s/client/shard_registry.o build/opt/mongo/s/grid.o Skipping ranlib for thin archive build/opt/mongo/s/libgrid.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrtrns.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ustrtrns.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_info_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_info_cache.cpp 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/json_schema_parser.cpp:44: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:48: src/mongo/db/matcher/schema/expression_internal_schema_fmod.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaFmodMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: warning: redundant move in return statement [-Wredundant-move] 51 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:50: src/mongo/db/matcher/schema/expression_internal_schema_max_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(maxItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:51: src/mongo/db/matcher/schema/expression_internal_schema_max_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(maxLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:52: src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:68:25: warning: redundant move in return statement [-Wredundant-move] 68 | return std::move(maxProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:68:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:53: src/mongo/db/matcher/schema/expression_internal_schema_min_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(minItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:54: src/mongo/db/matcher/schema/expression_internal_schema_min_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(minLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:55: src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:68:25: warning: redundant move in return statement [-Wredundant-move] 68 | return std::move(minProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:68:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:59: 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:59:25: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: note: remove 'std::move' call src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'std::unique_ptr mongo::{anonymous}::makeRestriction(const mongo::MatcherTypeSet&, mongo::StringData, std::unique_ptr, mongo::InternalSchemaTypeExpression*)': src/mongo/db/matcher/schema/json_schema_parser.cpp:173:21: warning: redundant move in return statement [-Wredundant-move] 173 | return std::move(orExpr); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:173:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv2022.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucnv2022.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection_info_cache.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection_info_cache.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/schema/json_schema_parser.cpp:46: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:118:38: required from here src/mongo/db/matcher/expression_arity.h:133:31: warning: redundant move in return statement [-Wredundant-move] 133 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:133:31: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.h:35, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/plurrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/plurrule.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utf16collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/utf16collationiterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tridpars.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tridpars.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 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 /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/error_extra_info.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/shard_local.cpp In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:40: src/mongo/bson/unordered_fields_bsonelement_comparator.h: In member function 'virtual void mongo::UnorderedFieldsBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/unordered_fields_bsonelement_comparator.h:53:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, toHash, ComparisonRules::kIgnoreFieldOrder, kStringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -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 -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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/type_shard_identity.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/type_shard_identity.cpp ar rcsTD build/opt/mongo/db/catalog/libcollection_info_cache.a build/opt/mongo/db/catalog/collection_info_cache.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection_info_cache.a Creating 'build/opt/mongo/util/version_constants.h' /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/version_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/version_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::StatusWith > > mongo::{anonymous}::parseType(mongo::StringData, mongo::StringData, mongo::BSONElement, mongo::StringMap&)': src/mongo/db/matcher/schema/json_schema_parser.cpp:176:59: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 176 | StatusWith> parseType( | ^~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/logfile.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/logfile.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/datetime/init_timezone_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/timelib-2018.01alpha1 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/datetime/init_timezone_data.cpp src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::parseRequired(mongo::BSONElement)': src/mongo/db/matcher/schema/json_schema_parser.cpp:451:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 451 | StatusWith> parseRequired(BSONElement requiredElt) { | ^~~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:451:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseAllowedProperties(mongo::StringData, mongo::BSONElement, mongo::BSONElement, mongo::BSONElement, mongo::InternalSchemaTypeExpression*, bool)': src/mongo/db/matcher/schema/json_schema_parser.cpp:652:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 652 | StatusWithMatchExpression parseAllowedProperties(StringData path, | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:652:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp:652:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::Status mongo::{anonymous}::translateObjectKeywords(mongo::StringMap*, mongo::StringData, mongo::InternalSchemaTypeExpression*, mongo::AndMatchExpression*, bool)': src/mongo/db/matcher/schema/json_schema_parser.cpp:1152:56: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1152 | auto requiredStatus = parseRequired(requiredElt); | ^ src/mongo/db/matcher/schema/json_schema_parser.cpp:1179:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1179 | ignoreUnknownKeywords); | ^ src/mongo/db/matcher/schema/json_schema_parser.cpp:1179:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp:1179:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp:1179:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp:706:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 706 | auto parsedNumProps = | ^~~~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:706:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 706 | auto parsedNumProps = | ^~~~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::_parse(mongo::StringData, mongo::BSONObj, bool)': src/mongo/db/matcher/schema/json_schema_parser.cpp:1433:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1433 | parseType(path, kSchemaTypeKeyword, typeElem, MatcherTypeSet::kJsonSchemaTypeAliasMap); | ^ src/mongo/db/matcher/schema/json_schema_parser.cpp:1440:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1440 | parseType(path, kSchemaBsonTypeKeyword, bsonTypeElem, kTypeAliasMap); | ^ src/mongo/db/matcher/schema/json_schema_parser.cpp:299:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 299 | auto parsedLength = MatchExpressionParser::parseIntegerElementToNonNegativeLong(length); | ^~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:299:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 299 | auto parsedLength = MatchExpressionParser::parseIntegerElementToNonNegativeLong(length); | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/storage/mmap_v1/liblogfile.a build/opt/mongo/db/storage/mmap_v1/logfile.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/liblogfile.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/plurfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/plurfmt.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servrbf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/servrbf.cpp ar rcsTD build/opt/mongo/db/query/datetime/libinit_timezone_data.a build/opt/mongo/db/query/datetime/init_timezone_data.o Skipping ranlib for thin archive build/opt/mongo/db/query/datetime/libinit_timezone_data.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvlat1.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 -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 -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/ucnvlat1.c src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::Status mongo::{anonymous}::translateArrayKeywords(mongo::StringMap*, mongo::StringData, bool, mongo::InternalSchemaTypeExpression*, mongo::AndMatchExpression*)': src/mongo/db/matcher/schema/json_schema_parser.cpp:299:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 299 | auto parsedLength = MatchExpressionParser::parseIntegerElementToNonNegativeLong(length); | ^~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:299:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 299 | auto parsedLength = MatchExpressionParser::parseIntegerElementToNonNegativeLong(length); | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/query.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/platform_init.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:80, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/db/matcher/expression.h:37, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h: In function 'mongo::Status mongo::{anonymous}::translateLogicalKeywords(mongo::StringMap*, mongo::StringData, mongo::AndMatchExpression*, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 849 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 ar rcsTD build/opt/mongo/s/client/libshard_local.a build/opt/mongo/s/client/shard_local.o Skipping ranlib for thin archive build/opt/mongo/s/client/libshard_local.a ar rcsTD build/opt/mongo/db/fts/libfts_query_noop.a build/opt/mongo/db/fts/fts_query_noop.o Skipping ranlib for thin archive build/opt/mongo/db/fts/libfts_query_noop.a /home/naourr/work/instance-2/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 -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 -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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/log.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_prefix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_prefix.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbirb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbbirb.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/scientificnumberformatter.cpp ar rcsTD build/opt/mongo/db/liblog_process_details.a build/opt/mongo/db/log_process_details.o Skipping ranlib for thin archive build/opt/mongo/db/liblog_process_details.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/expression_index_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/expression_index_knobs.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/auth_decorations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/auth_decorations.cpp src/mongo/db/storage/kv/kv_prefix.cpp: In static member function 'static mongo::KVPrefix mongo::KVPrefix::fromBSONElement(mongo::BSONElement)': src/mongo/db/storage/kv/kv_prefix.cpp:45:23: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 45 | /* static */ KVPrefix KVPrefix::fromBSONElement(const BSONElement value) { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/storage/kv/libkv_prefix.a build/opt/mongo/db/storage/kv/kv_prefix.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_prefix.a ar rcsTD build/opt/mongo/rpc/librpc.a build/opt/mongo/rpc/factory.o Skipping ranlib for thin archive build/opt/mongo/rpc/librpc.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/optime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/optime.cpp ar rcsTD build/opt/mongo/client/libclient_query.a build/opt/mongo/client/query.o Skipping ranlib for thin archive build/opt/mongo/client/libclient_query.a ar rcsTD build/opt/third_party/murmurhash3/libmurmurhash3.a build/opt/third_party/murmurhash3/MurmurHash3.o Skipping ranlib for thin archive build/opt/third_party/murmurhash3/libmurmurhash3.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/sort_key_generator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_pcrecpp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 src/third_party/shim_pcrecpp.cc ar rcsTD build/opt/third_party/libshim_pcrecpp.a build/opt/third_party/shim_pcrecpp.o Skipping ranlib for thin archive build/opt/third_party/libshim_pcrecpp.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/quick_exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/quick_exit.cpp ar rcsTD build/opt/mongo/util/libquick_exit.a build/opt/mongo/util/quick_exit.o Skipping ranlib for thin archive build/opt/mongo/util/libquick_exit.a ar rcsTD build/opt/mongo/db/fts/libftsmongod.a build/opt/mongo/db/fts/ftsmongod.o Skipping ranlib for thin archive build/opt/mongo/db/fts/libftsmongod.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_knobs.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboptime.a build/opt/mongo/db/repl/bson_extract_optime.o build/opt/mongo/db/repl/optime.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboptime.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unum.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/concurrency/thread_name.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/query/libquery_knobs.a build/opt/mongo/db/query/query_knobs.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_knobs.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.cpp ar rcsTD build/opt/mongo/s/query/libcluster_cursor_cleanup_job.a build/opt/mongo/s/query/cluster_cursor_cleanup_job.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_cursor_cleanup_job.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_manager_global.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager_global.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauth.a build/opt/mongo/db/auth/authorization_manager.o build/opt/mongo/db/auth/authorization_session.o build/opt/mongo/db/auth/auth_decorations.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_metadata.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/file_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/file_manager.cpp ar rcsTD build/opt/mongo/db/auth/libauthorization_manager_global.a build/opt/mongo/db/auth/authorization_manager_global.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthorization_manager_global.a ar rcsTD build/opt/mongo/db/update/libupdate_driver.a build/opt/mongo/db/update/update_driver.o Skipping ranlib for thin archive build/opt/mongo/db/update/libupdate_driver.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/controller.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/concurrency/thread_pool.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path_traits.hpp:26, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path.hpp:26, from src/mongo/db/ftdc/file_manager.h:33, from src/mongo/db/ftdc/file_manager.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::tuple}; _Tp = std::tuple; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ttl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ttl.cpp /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'std::vector > mongo::FTDCFileManager::recoverInterimFile()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/update.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update_index_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update_index_data.cpp 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/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/get_shard_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/get_shard_version_command.cpp ar rcsTD build/opt/mongo/db/libupdate_index_data.a build/opt/mongo/db/update_index_data.o Skipping ranlib for thin archive build/opt/mongo/db/libupdate_index_data.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index_legacy.cpp src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/varint.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uobject.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uobject.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point_server_parameter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fail_point_server_parameter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/clone_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/clone_collection.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/role_graph_update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/role_graph_update.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv.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 -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 -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.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/md5.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/md5.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvscsu.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 -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 -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/ucnvscsu.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimfmtimpl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/decimfmtimpl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/sync_source_feedback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/sync_source_feedback.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/noop_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/noop_writer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/librole_graph_update.a build/opt/mongo/db/auth/role_graph_update.o Skipping ranlib for thin archive build/opt/mongo/db/auth/librole_graph_update.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_external_state_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_external_state_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fpositer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/fpositer.cpp ar rcsTD build/opt/mongo/db/repl/libreplication_consistency_markers_impl.a build/opt/mongo/db/repl/replication_consistency_markers_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_consistency_markers_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/single_write_result_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/ops/single_write_result_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uchar.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 -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 -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/uchar.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/async_results_merger_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/query/async_results_merger_params_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/ramlog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/ramlog.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/assert_util.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_expr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_expr.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/object_replace_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/object_replace_node.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from build/opt/mongo/s/query/async_results_merger_params_gen.h:14, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RemoteCursor}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_expr.h:35, from src/mongo/db/matcher/expression_expr.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_expr.h:35, from src/mongo/db/matcher/expression_expr.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_expr.h:36, from src/mongo/db/matcher/expression_expr.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::AsyncResultsMergerParams::parseProtected(const mongo::IDLParserErrorContext&, const mongo::BSONObj&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/rewrite_expr.h:37, from src/mongo/db/matcher/expression_expr.h:37, from src/mongo/db/matcher/expression_expr.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_internal_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_internal_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_expr.cpp: In member function 'virtual std::unique_ptr mongo::ExprMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_expr.cpp:115:21: warning: redundant move in return statement [-Wredundant-move] 115 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/expression_expr.cpp:115:21: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/pullall_node.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_array_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_array_node.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_array_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_array_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/pullall_node.h:33, from src/mongo/db/update/pullall_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/pullall_node.h:33, from src/mongo/db/update/pullall_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_expr.cpp: In constructor 'mongo::ExprMatchExpression::ExprMatchExpression(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/matcher/expression_expr.cpp:45:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 45 | ExprMatchExpression::ExprMatchExpression(BSONElement elem, | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_expr.cpp:47:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 47 | : ExprMatchExpression(Expression::parseOperand(expCtx, elem, expCtx->variablesParseState), | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_expr.cpp: In member function 'virtual std::unique_ptr mongo::ExprMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_expr.cpp:109:97: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 109 | Expression::parseOperand(_expCtx, bob.obj().firstElement(), _expCtx->variablesParseState); | ^ src/mongo/db/update/update_array_node.cpp: In static member function 'static std::unique_ptr mongo::UpdateArrayNode::createUpdateNodeByMerging(const mongo::UpdateArrayNode&, const mongo::UpdateArrayNode&, mongo::FieldRef*)': src/mongo/db/update/update_array_node.cpp:48:21: warning: redundant move in return statement [-Wredundant-move] 48 | return std::move(mergedNode); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/update/update_array_node.cpp:48:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/addtoset_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/addtoset_node.cpp ar rcsTD build/opt/mongo/db/repl/libserveronly_repl.a build/opt/mongo/db/repl/noop_writer.o build/opt/mongo/db/repl/replication_coordinator_external_state_impl.o build/opt/mongo/db/repl/sync_source_feedback.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libserveronly_repl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_node.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:66:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 66 | Status PullAllNode::init(BSONElement modExpr, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/array_culling_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/array_culling_node.cpp In file included from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_array_node.cpp:33: src/mongo/db/matcher/expression_with_placeholder.h: In member function 'virtual mongo::UpdateNode::ApplyResult mongo::UpdateArrayNode::apply(mongo::UpdateNode::ApplyParams) const': src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/addtoset_node.h:33, from src/mongo/db/update/addtoset_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/addtoset_node.h:33, from src/mongo/db/update/addtoset_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/bit_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/bit_node.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_node.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_node.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/array_culling_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/array_culling_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/update/addtoset_node.cpp: In member function 'virtual mongo::Status mongo::AddToSetNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/addtoset_node.cpp:66:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 66 | Status AddToSetNode::init(BSONElement modExpr, | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/bit_node.h:33, from src/mongo/db/update/bit_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/bit_node.h:33, from src/mongo/db/update/bit_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/modifier_table.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/modifier_table.cpp /home/naourr/work/instance-2/output-1/host/bin/python src/mongo/db/fts/generate_stop_words.py src/mongo/db/fts/stop_words_danish.txt src/mongo/db/fts/stop_words_dutch.txt src/mongo/db/fts/stop_words_english.txt src/mongo/db/fts/stop_words_finnish.txt src/mongo/db/fts/stop_words_french.txt src/mongo/db/fts/stop_words_german.txt src/mongo/db/fts/stop_words_hungarian.txt src/mongo/db/fts/stop_words_italian.txt src/mongo/db/fts/stop_words_norwegian.txt src/mongo/db/fts/stop_words_portuguese.txt src/mongo/db/fts/stop_words_romanian.txt src/mongo/db/fts/stop_words_russian.txt src/mongo/db/fts/stop_words_spanish.txt src/mongo/db/fts/stop_words_swedish.txt src/mongo/db/fts/stop_words_turkish.txt build/opt/mongo/db/fts/stop_words_list.h build/opt/mongo/db/fts/stop_words_list.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/stop_words_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/fts/stop_words_list.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ures_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 -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 -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/ures_cnv.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/namespace_string.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_table.h:33, from src/mongo/db/update/modifier_table.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/bit_node.h:33, from src/mongo/db/update/bit_node.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::BitNode::BitwiseOp&}; _Tp = mongo::BitNode::BitwiseOp; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_table.h:33, from src/mongo/db/update/modifier_table.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/update/bit_node.cpp: In member function 'virtual mongo::Status mongo::BitNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/bit_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status BitNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/bit_node.h:33, from src/mongo/db/update/bit_node.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/time_proof_service.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/digitformatter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/scatter_gather_algorithm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/scatter_gather_algorithm.cpp 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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.c ar rcsTD build/opt/mongo/db/commands/libserver_status.a build/opt/mongo/db/commands/server_status.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libserver_status.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/egress_tag_closer_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/egress_tag_closer_manager.cpp ar rcsTD build/opt/mongo/db/repl/libscatter_gather.a build/opt/mongo/db/repl/scatter_gather_algorithm.o build/opt/mongo/db/repl/scatter_gather_runner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libscatter_gather.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_cache.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp In file included from src/mongo/db/update/modifier_table.cpp:43: src/mongo/db/update/conflict_placeholder_node.h: In member function 'virtual mongo::Status mongo::ConflictPlaceholderNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/conflict_placeholder_node.h:49:12: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 49 | Status init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) final { | ^~~~ ar rcsTD build/opt/mongo/db/update/libupdate.a build/opt/mongo/db/update/addtoset_node.o build/opt/mongo/db/update/arithmetic_node.o build/opt/mongo/db/update/array_culling_node.o build/opt/mongo/db/update/bit_node.o build/opt/mongo/db/update/compare_node.o build/opt/mongo/db/update/current_date_node.o build/opt/mongo/db/update/modifier_node.o build/opt/mongo/db/update/modifier_table.o build/opt/mongo/db/update/object_replace_node.o build/opt/mongo/db/update/pop_node.o build/opt/mongo/db/update/pull_node.o build/opt/mongo/db/update/pullall_node.o build/opt/mongo/db/update/push_node.o build/opt/mongo/db/update/rename_node.o build/opt/mongo/db/update/set_node.o build/opt/mongo/db/update/unset_node.o build/opt/mongo/db/update/update_array_node.o build/opt/mongo/db/update/update_internal_node.o build/opt/mongo/db/update/update_leaf_node.o build/opt/mongo/db/update/update_node.o build/opt/mongo/db/update/update_object_node.o In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/update/libupdate.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/copydb_start_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/copydb_start_commands.cpp 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:32: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_match_array_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.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:56:21: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:56:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_add_to_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_add_to_set.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:33: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:32: 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:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_add_to_set.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_add_to_set.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaMatchArrayIndexMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:95:21: warning: redundant move in return statement [-Wredundant-move] 95 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:95:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/apply_ops_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/apply_ops_cmd.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:33: src/mongo/db/matcher/expression_with_placeholder.h: In member function 'virtual bool mongo::InternalSchemaMatchArrayIndexMatchExpression::matchesArray(const mongo::BSONObj&, mongo::MatchDetails*) const': src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_commit_move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/tokenizer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.cpp:46: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udateintervalformat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/udateintervalformat.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tmunit.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/top.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/top.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/dtintrv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dtintrv.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ufieldpositer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ufieldpositer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.c In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/sharding_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/sharding_metadata.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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libdocument_validation.a build/opt/mongo/db/catalog/document_validation.o 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/catalog/libdocument_validation.a 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servlkf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/servlkf.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/messagepattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/messagepattern.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libserver_parameters.a build/opt/mongo/db/server_parameters.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_parameters.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp ar rcsTD build/opt/mongo/executor/libnetwork_interface.a build/opt/mongo/executor/network_interface.o Skipping ranlib for thin archive build/opt/mongo/executor/libnetwork_interface.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog_cache_loader.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaEqMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:90:21: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:90:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.c In file included from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: src/mongo/bson/unordered_fields_bsonelement_comparator.h: In member function 'virtual void mongo::UnorderedFieldsBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/unordered_fields_bsonelement_comparator.h:53:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, toHash, ComparisonRules::kIgnoreFieldOrder, kStringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp: In constructor 'mongo::InternalSchemaEqMatchExpression::InternalSchemaEqMatchExpression(mongo::StringData, mongo::BSONElement)': src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:43:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 43 | InternalSchemaEqMatchExpression::InternalSchemaEqMatchExpression(StringData path, BSONElement rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:80, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/util/assert_util.h:37, from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonelement_comparator_interface.h:33, from src/mongo/bson/unordered_fields_bsonelement_comparator.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaEqMatchExpression::shallowClone() const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 849 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/timer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/server_status_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/server_status_internal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/random.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/random.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidi_props.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 -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 -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/ubidi_props.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.c ar rcsTD build/opt/mongo/db/libindex_d.a build/opt/mongo/db/index_builder.o build/opt/mongo/db/index_legacy.o build/opt/mongo/db/index_rebuilder.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.c Skipping ranlib for thin archive build/opt/mongo/db/libindex_d.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/constraints.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/value.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/startup_options.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_cache.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/stringutils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/stringutils.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/fsync_locked.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/fsync_locked.cpp ar rcsTD build/opt/mongo/rpc/libclient_metadata.a build/opt/mongo/rpc/metadata/client_metadata.o build/opt/mongo/rpc/metadata/client_metadata_ismaster.o ar rcsTD build/opt/mongo/util/options_parser/liboptions_parser.a build/opt/mongo/util/options_parser/environment.o build/opt/mongo/util/options_parser/value.o build/opt/mongo/util/options_parser/constraints.o build/opt/mongo/util/options_parser/option_section.o build/opt/mongo/util/options_parser/option_description.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 ar rcsTD build/opt/mongo/db/commands/libfsync_locked.a build/opt/mongo/db/commands/fsync_locked.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libfsync_locked.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/distinct_scan.cpp Skipping ranlib for thin archive build/opt/mongo/util/options_parser/liboptions_parser.a Skipping ranlib for thin archive build/opt/mongo/rpc/libclient_metadata.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/initialize_snmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/initialize_snmp.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collation.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/japancal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/japancal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/parsed_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/parsed_projection.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/errorcode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/errorcode.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/security_file.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collation_index_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collation_index_key.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libsecurity_file.a build/opt/mongo/db/auth/security_file.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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/auth/libsecurity_file.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_interface.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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/distinct_scan.h:37, from src/mongo/db/exec/distinct_scan.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/distinct_scan.h:37, from src/mongo/db/exec/distinct_scan.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/distinct_scan.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/distinct_scan.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unifilt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unifilt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/olsontz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/olsontz.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/planner_analysis.cpp src/mongo/db/query/collation/collation_index_key.cpp: In static member function 'static void mongo::CollationIndexKey::collationAwareIndexKeyAppend(mongo::BSONElement, const mongo::CollatorInterface*, mongo::BSONObjBuilder*)': src/mongo/db/query/collation/collation_index_key.cpp:150:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 150 | void CollationIndexKey::collationAwareIndexKeyAppend(BSONElement elt, | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/query/collation/libcollator_interface.a build/opt/mongo/db/query/collation/collation_index_key.o build/opt/mongo/db/query/collation/collation_spec.o build/opt/mongo/db/query/collation/collator_interface.o Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_interface.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uvectr64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uvectr64.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/cmdline_utils/censor_cmdline.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.cpp:31: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/distinct_scan.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/ntservice.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/ntservice.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/network_interface_tl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/network_interface_tl.cpp ar rcsTD build/opt/mongo/util/libntservice.a build/opt/mongo/util/ntservice.o Skipping ranlib for thin archive build/opt/mongo/util/libntservice.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_util.cpp 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_query_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_parser.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_query_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_impl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_matcher.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/fts/fts_query_impl.cpp: In member function 'virtual std::unique_ptr mongo::fts::FTSQueryImpl::clone() const': src/mongo/db/fts/fts_query_impl.cpp:155:21: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(clonedQuery); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/fts/fts_query_impl.cpp:155:21: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_basic_phrase_matcher.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/stop_words.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/stop_words.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_language.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_language.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_element_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_element_iterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_spec.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/stemmer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/stemmer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/fts/fts_spec.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/fts/fts_spec.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_options.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/fts/fts_spec.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/fts/fts_spec.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/choicfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/choicfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol_sit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_sit.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/planner_ixselect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/planner_ixselect.cpp ar rcsTD build/opt/mongo/s/query/libasync_results_merger.a build/opt/mongo/s/query/async_results_merger.o build/opt/mongo/s/query/establish_cursors.o build/opt/mongo/s/query/async_results_merger_params_gen.o Skipping ranlib for thin archive build/opt/mongo/s/query/libasync_results_merger.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/sharedbreakiterator.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/util.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/fts/fts_spec.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/query/planner_ixselect.cpp:42: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call src/mongo/db/fts/fts_spec.cpp: In member function 'mongo::Status mongo::fts::FTSSpec::getIndexPrefix(const mongo::BSONObj&, mongo::BSONObj*) const': src/mongo/db/fts/fts_spec.cpp:256:84: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 256 | MatchExpressionParser::parsePathAcceptingKeyword(e.Obj().firstElement())) | ^ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path_traits.hpp:26, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path.hpp:26, from src/mongo/db/ftdc/util.h:33, from src/mongo/db/ftdc/util.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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:271:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 271 | } | ^ ar rcsTD build/opt/mongo/db/fts/libbase_fts.a build/opt/mongo/db/fts/fts_index_format.o build/opt/mongo/db/fts/fts_matcher.o build/opt/mongo/db/fts/fts_query_impl.o build/opt/mongo/db/fts/fts_query_parser.o build/opt/mongo/db/fts/fts_spec.o build/opt/mongo/db/fts/fts_spec_legacy.o build/opt/mongo/db/fts/fts_language.o build/opt/mongo/db/fts/fts_basic_phrase_matcher.o build/opt/mongo/db/fts/fts_basic_tokenizer.o build/opt/mongo/db/fts/fts_unicode_phrase_matcher.o build/opt/mongo/db/fts/fts_unicode_tokenizer.o build/opt/mongo/db/fts/fts_util.o build/opt/mongo/db/fts/fts_element_iterator.o build/opt/mongo/db/fts/stemmer.o build/opt/mongo/db/fts/stop_words.o build/opt/mongo/db/fts/stop_words_list.o build/opt/mongo/db/fts/tokenizer.o In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/catalog/collection_options.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tolowtrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tolowtrn.cpp Skipping ranlib for thin archive build/opt/mongo/db/fts/libbase_fts.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/keep_mutations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/keep_mutations.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/shard_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/shard_util.cpp src/mongo/db/catalog/collection_options.cpp: In member function 'mongo::Status mongo::CollectionOptions::parse(const mongo::BSONObj&, mongo::CollectionOptions::ParseKind)': src/mongo/db/catalog/collection_options.cpp:138:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 138 | auto res = CollectionUUID::parse(e); | ^ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/catalog/collection_options.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/keep_mutations.h:36, from src/mongo/db/exec/keep_mutations.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/keep_mutations.h:36, from src/mongo/db/exec/keep_mutations.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucharstrie.cpp ar rcsTD build/opt/mongo/db/catalog/libcollection_options.a build/opt/mongo/db/catalog/collection_options.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection_options.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dayperiodrules.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dayperiodrules.cpp In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/exec/keep_mutations.h:36, from src/mongo/db/exec/keep_mutations.cpp:31: 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:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/s/shard_util.cpp: In function 'mongo::StatusWith > > mongo::shardutil::selectChunkSplitPoints(mongo::OperationContext*, const mongo::ShardId&, const mongo::NamespaceString&, const mongo::ShardKeyPattern&, const mongo::ChunkRange&, long long int, boost::optional)': src/mongo/s/shard_util.cpp:135:21: warning: redundant move in return statement [-Wredundant-move] 135 | return std::move(splitPoints); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/s/shard_util.cpp:135:21: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/matchable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/matchable.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_str_length.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/devnull/devnull_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/devnull/devnull_init.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.c /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/object_check.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/object_check.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/set_shard_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/set_shard_version_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/field_ref_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/field_ref_set.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/field_ref.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/field_ref.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keypattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keypattern.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/field_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/field_parser.cpp ar rcsTD build/opt/mongo/rpc/libobject_check.a build/opt/mongo/rpc/object_check.o Skipping ranlib for thin archive build/opt/mongo/rpc/libobject_check.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/insert.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/insert.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, bool*, std::string*)': src/mongo/db/field_parser.cpp:46:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 46 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::BSONArray*, std::string*)': src/mongo/db/field_parser.cpp:76:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 76 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::BSONObj*, std::string*)': src/mongo/db/field_parser.cpp:106:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 106 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extractID(mongo::BSONElement, const mongo::BSONField&, mongo::BSONObj*, std::string*)': src/mongo/db/field_parser.cpp:429:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 429 | FieldParser::FieldState FieldParser::extractID(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::Date_t*, std::string*)': src/mongo/db/field_parser.cpp:136:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::Timestamp*, std::string*)': src/mongo/db/field_parser.cpp:166:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 166 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField >&, std::string*, std::string*)': src/mongo/db/field_parser.cpp:195:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 195 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::OID*, std::string*)': src/mongo/db/field_parser.cpp:226:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 226 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uni2name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uni2name.cpp src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, int*, std::string*)': src/mongo/db/field_parser.cpp:255:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 255 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ ar rcsTD build/opt/mongo/db/storage/mmap_v1/librepair_database_interface.a build/opt/mongo/db/storage/mmap_v1/repair_database_interface.o src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extractNumber(mongo::BSONElement, const mongo::BSONField&, int*, std::string*)': src/mongo/db/field_parser.cpp:284:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 284 | FieldParser::FieldState FieldParser::extractNumber(BSONElement elem, | ^~~~~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/librepair_database_interface.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/basictz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/basictz.cpp src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, long long int*, std::string*)': src/mongo/db/field_parser.cpp:313:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 313 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/text_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/text_match.cpp src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extractNumber(mongo::BSONElement, const mongo::BSONField&, long long int*, std::string*)': src/mongo/db/field_parser.cpp:342:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 342 | FieldParser::FieldState FieldParser::extractNumber(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, double*, std::string*)': src/mongo/db/field_parser.cpp:371:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 371 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extractNumber(mongo::BSONElement, const mongo::BSONField&, double*, std::string*)': src/mongo/db/field_parser.cpp:400:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 400 | FieldParser::FieldState FieldParser::extractNumber(BSONElement elem, | ^~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libcommon.a build/opt/mongo/db/field_ref.o build/opt/mongo/db/field_ref_set.o build/opt/mongo/db/field_parser.o build/opt/mongo/db/keypattern.o Skipping ranlib for thin archive build/opt/mongo/db/libcommon.a ar rcsTD build/opt/mongo/db/liblogical_time_metadata_hook.a build/opt/mongo/db/logical_time_metadata_hook.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_time_metadata_hook.a ar rcsTD build/opt/mongo/db/libservice_entry_point_common.a build/opt/mongo/db/service_entry_point_common.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_entry_point_common.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_state.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/connection_string_connect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/connection_string_connect.cpp ar rcsTD build/opt/mongo/db/auth/libauthmongod.a build/opt/mongo/db/auth/authz_manager_external_state_d.o build/opt/mongo/db/auth/authz_session_external_state_d.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthmongod.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/esctrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/esctrn.cpp ar rcsTD build/opt/third_party/s2/util/coding/libcoding.a build/opt/third_party/s2/util/coding/coder.o build/opt/third_party/s2/util/coding/varint.o Skipping ranlib for thin archive build/opt/third_party/s2/util/coding/libcoding.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/debugger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/debugger.cpp src/mongo/client/connection_string_connect.cpp: In member function 'std::unique_ptr mongo::ConnectionString::connect(mongo::StringData, std::string&, double, const mongo::MongoURI*) const': src/mongo/client/connection_string_connect.cpp:72:33: warning: redundant move in return statement [-Wredundant-move] 72 | return std::move(c); | ~~~~~~~~~^~~ src/mongo/client/connection_string_connect.cpp:72:33: note: remove 'std::move' call src/mongo/client/connection_string_connect.cpp:85:29: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(set); | ~~~~~~~~~^~~~~ src/mongo/client/connection_string_connect.cpp:85:29: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libdebugger.a build/opt/mongo/util/debugger.o Skipping ranlib for thin archive build/opt/mongo/util/libdebugger.a 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/write_ops_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_exec.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/dist_lock_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_catalog.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/dns_query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/dns_query.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/region.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/region.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libstorage_file_util.a build/opt/mongo/db/storage/storage_file_util.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_file_util.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uset.cpp ar rcsTD build/opt/mongo/util/net/libssl_options.a build/opt/mongo/util/net/ssl_options.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_options.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/errno_util.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/parsed_distinct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/parsed_distinct.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/read_concern_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/read_concern_args.cpp ar rcsTD build/opt/mongo/util/libdns_query.a build/opt/mongo/util/dns_query.o Skipping ranlib for thin archive build/opt/mongo/util/libdns_query.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locdspnm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/locdspnm.cpp /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/i18n/decContext.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 -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 -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/decContext.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/cursor_server_params.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_io.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_io.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/index_bounds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/index_bounds.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_storage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_storage.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/query/parsed_distinct.cpp: In static member function 'static mongo::StatusWith mongo::ParsedDistinct::parse(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::ExtensionsCallback&, bool)': src/mongo/db/query/parsed_distinct.cpp:266:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 266 | auto maxTimeMS = QueryRequest::parseMaxTimeMS(maxTimeMSElt); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/query/libquery_common.a build/opt/mongo/db/query/collation/collator_factory_icu_decoration.o build/opt/mongo/db/query/find_common.o build/opt/mongo/db/query/parsed_distinct.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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_common.a 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/flush_routing_table_cache_updates_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/flush_routing_table_cache_updates_command.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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/ops/write_ops_exec.cpp: In function 'void mongo::{anonymous}::insertDocuments(mongo::OperationContext*, mongo::Collection*, std::vector::iterator, std::vector::iterator, bool)': src/mongo/db/ops/write_ops_exec.cpp:330:6: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 330 | void insertDocuments(OperationContext* opCtx, | ^~~~~~~~~~~~~~~ src/mongo/db/ops/write_ops_exec.cpp:330:6: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 481 | return this->_impl().insertDocuments(opCtx, begin, end, opDebug, enforceQuota, fromMigrate); | ^ src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/auth/privilege.h:33, from src/mongo/db/audit.h:39, from src/mongo/db/ops/write_ops_exec.cpp:38: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 int&, mongo::BSONObj&}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::WriteResult mongo::performInserts(mongo::OperationContext*, const mongo::write_ops::Insert&, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/ops/write_ops_exec.cpp:412:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 412 | insertDocuments( | ~~~~~~~~~~~~~~~^ 413 | opCtx, collection->getCollection(), batch.begin(), batch.end(), fromMigrate); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/ops/write_ops_exec.cpp:450:36: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 450 | insertDocuments(opCtx, collection->getCollection(), it, it + 1, fromMigrate); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/ops/write_ops_exec.cpp:450:36: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 450 | insertDocuments(opCtx, collection->getCollection(), it, it + 1, fromMigrate); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udatpg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/udatpg.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationrootelements.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationrootelements.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/session_catalog.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/ops/libwrite_ops_exec.a build/opt/mongo/db/ops/write_ops_exec.o Skipping ranlib for thin archive build/opt/mongo/db/ops/libwrite_ops_exec.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/multi_key_path_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/multi_key_path_tracker.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/client.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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidi.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 -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 -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/ubidi.c ar rcsTD build/opt/mongo/db/liblasterror.a build/opt/mongo/db/lasterror.o Skipping ranlib for thin archive build/opt/mongo/db/liblasterror.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/btree/btree_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/btree/btree_interface.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/replica_set_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/replica_set_monitor.cpp ar rcsTD build/opt/mongo/db/libservice_context.a build/opt/mongo/db/client.o build/opt/mongo/db/multi_key_path_tracker.o build/opt/mongo/db/operation_context.o build/opt/mongo/db/operation_context_group.o build/opt/mongo/db/service_context.o build/opt/mongo/db/server_recovery.o build/opt/mongo/db/unclean_shutdown.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_context.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/flush_router_config_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_ext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_ext.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/move_primary_command.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:62, from src/mongo/client/replica_set_monitor.h:34, from src/mongo/client/replica_set_monitor.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::HostAndPort; _Compare = __gnu_cxx::__ops::_Iter_comp_val]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/client/replica_set_monitor.h:40, from src/mongo/client/replica_set_monitor.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::{anonymous}::Node* mongo::ReplicaSetMonitor::SetState::findNode(const mongo::HostAndPort&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2032:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 2032 | return std::__lower_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2033 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/repl/librs_rollback.a build/opt/mongo/db/repl/rs_rollback.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librs_rollback.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/remote_command_retry_scheduler.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/remote_command_retry_scheduler.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/mongo_uri.h:36, from src/mongo/client/replica_set_monitor.h:41, from src/mongo/client/replica_set_monitor.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ReplicaSetMonitor::SetState::Node}; _Tp = mongo::ReplicaSetMonitor::SetState::Node; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/client/replica_set_monitor.h:40, from src/mongo/client/replica_set_monitor.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Predicate = __gnu_cxx::__ops::_Iter_pred]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:112:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 112 | __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:112:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::{anonymous}::Node* mongo::ReplicaSetMonitor::SetState::findOrCreateNode(const mongo::HostAndPort&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2032:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 2032 | return std::__lower_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2033 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/mongo_uri.h:36, from src/mongo/client/replica_set_monitor.h:41, from src/mongo/client/replica_set_monitor.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:356:2: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 356 | _M_realloc_insert(begin() + __n, std::move(__v)); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In constructor 'mongo::ReplicaSetMonitor::SetState::SetState(mongo::StringData, const std::set&, mongo::MongoURI)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ReplicaSetMonitor::IsMasterReply&}; _Tp = mongo::ReplicaSetMonitor::IsMasterReply; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/client/libremote_command_retry_scheduler.a build/opt/mongo/client/remote_command_retry_scheduler.o Skipping ranlib for thin archive build/opt/mongo/client/libremote_command_retry_scheduler.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_liaison_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_liaison_mongod.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 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/client/mongo_uri.h:36, from src/mongo/client/replica_set_monitor.h:41, from src/mongo/client/replica_set_monitor.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::ReplicaSetMonitor::Refresher::receivedIsMaster(const mongo::HostAndPort&, int64_t, const mongo::BSONObj&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/s/commands/libshared_cluster_commands.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/dbcheck_idl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/dbcheck_idl.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/client/replica_set_monitor.h:40, from src/mongo/client/replica_set_monitor.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::HostAndPort mongo::ReplicaSetMonitor::SetState::getMatchingHost(const mongo::ReadPreferenceSetting&) const': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:161:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 161 | return __find_if(__first, __last, __pred, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 162 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:161:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 161 | return __find_if(__first, __last, __pred, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 162 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_server_status.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_mongod.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_mongod.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.c 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fail_point_service.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_enumerator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_enumerator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_mongod.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_planner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_planner.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/planner_access.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/planner_access.cpp 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/query/planner_access.cpp:44: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/index_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/index_entry.cpp 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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp: In static member function 'static std::unique_ptr mongo::QueryPlannerAccess::makeCollectionScan(const mongo::CanonicalQuery&, bool, const mongo::QueryPlannerParams&)': src/mongo/db/query/planner_access.cpp:179:21: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(csn); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:179:21: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp: In static member function 'static std::unique_ptr mongo::QueryPlannerAccess::makeLeafNode(const mongo::CanonicalQuery&, const mongo::IndexEntry&, size_t, const mongo::MatchExpression*, mongo::IndexBoundsBuilder::BoundsTightness*)': src/mongo/db/query/planner_access.cpp:215:29: warning: redundant move in return statement [-Wredundant-move] 215 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:215:29: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:224:29: warning: redundant move in return statement [-Wredundant-move] 224 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:224:29: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:243:25: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(isn); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:265:25: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp: In static member function 'static std::unique_ptr mongo::QueryPlannerAccess::buildIndexedAnd(const mongo::CanonicalQuery&, mongo::MatchExpression*, std::unique_ptr, const std::vector&, const mongo::QueryPlannerParams&)': src/mongo/db/query/planner_access.cpp:1051:25: warning: redundant move in return statement [-Wredundant-move] 1051 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1051:25: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp: In static member function 'static std::unique_ptr mongo::QueryPlannerAccess::_buildIndexedDataAccess(const mongo::CanonicalQuery&, mongo::MatchExpression*, std::unique_ptr, const std::vector&, const mongo::QueryPlannerParams&)': src/mongo/db/query/planner_access.cpp:1218:33: warning: redundant move in return statement [-Wredundant-move] 1218 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1218:33: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:1242:29: warning: redundant move in return statement [-Wredundant-move] 1242 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1242:29: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/index_entry.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/index_entry.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/index_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/index_tag.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/index_tag.h:37, from src/mongo/db/query/index_tag.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/index_tag.h:37, from src/mongo/db/query/index_tag.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/query/index_tag.cpp:33: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/query/index_tag.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/canonical_query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/canonical_query.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_cache_indexability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_cache_indexability.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_solution.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_solution.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/canonical_query.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/canonical_query.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/canonical_query.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/canonical_query.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/plan_cache_indexability.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/plan_cache_indexability.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_internal_expr_eq.h:33, from src/mongo/db/query/plan_cache_indexability.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/itoa.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/itoa.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_solution.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_solution.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/query/canonical_query.cpp:38: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_yaml.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 src/third_party/shim_yaml.cpp ar rcsTD build/opt/third_party/libshim_yaml.a build/opt/third_party/shim_yaml.o Skipping ranlib for thin archive build/opt/third_party/libshim_yaml.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/bson_validate.cpp src/mongo/db/query/canonical_query.cpp: In static member function 'static mongo::StatusWith > mongo::CanonicalQuery::canonicalize(mongo::OperationContext*, std::unique_ptr, const boost::intrusive_ptr&, const mongo::ExtensionsCallback&, mongo::MatchExpressionParser::AllowedFeatureSet)': src/mongo/db/query/canonical_query.cpp:179:21: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(cq); | ~~~~~~~~~^~~~ src/mongo/db/query/canonical_query.cpp:179:21: note: remove 'std::move' call src/mongo/db/query/canonical_query.cpp: In static member function 'static mongo::StatusWith > mongo::CanonicalQuery::canonicalize(mongo::OperationContext*, const mongo::CanonicalQuery&, mongo::MatchExpression*)': src/mongo/db/query/canonical_query.cpp:214:21: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(cq); | ~~~~~~~~~^~~~ src/mongo/db/query/canonical_query.cpp:214:21: 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/allocator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/canonical_query.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/split_vector_command.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:55:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 55 | Status NOINLINE_DECL makeError(StringData baseMsg, BSONElement idElem, StringData elemName) { | ^~~~~~~~~ src/mongo/bson/bson_validate.cpp: In function 'mongo::Status mongo::validateBSON(const char*, uint64_t, mongo::BSONVersion)': src/mongo/bson/bson_validate.cpp:336:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 336 | return makeError("bson size is larger than buffer size", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:336:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:214:62: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 214 | return makeError("invalid bson", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:214:62: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:234:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 234 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:234:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:239:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 239 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:239:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:245:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 245 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:245:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:247:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 247 | return makeError("invalid boolean value", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:247:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:255:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 255 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:255:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:260:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 260 | return makeError("Invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:260:67: 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:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 121 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:121: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:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 133 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | return makeError("not null terminated string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:268:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 268 | return makeError("invalid bson length", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:268:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:97:69: 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:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 121 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:121: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:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 133 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | return makeError("not null terminated string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:136:77: 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:295:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 295 | return makeError("invalid size in bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:295:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:297:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 297 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:297:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:309:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 309 | return makeError("invalid bson type", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:309:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:371:88: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 371 | "bson length doesn't match what we found", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:371:88: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:391:90: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 391 | return makeError("invalid bson CodeWScope size", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:391:90: 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:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 121 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:121: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:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 133 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | return makeError("not null terminated string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:403:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 403 | StringData()); | ^ src/mongo/bson/bson_validate.cpp:403:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:407:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 407 | return makeError("unnested CodeWScope", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:407:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_split_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_split_chunk_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_merge_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_merge_chunk_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/query/libquery_planner.a build/opt/mongo/db/query/canonical_query.o build/opt/mongo/db/query/query_settings.o build/opt/mongo/db/query/index_entry.o build/opt/mongo/db/query/index_tag.o build/opt/mongo/db/query/parsed_projection.o build/opt/mongo/db/query/plan_cache.o build/opt/mongo/db/query/plan_cache_indexability.o build/opt/mongo/db/query/plan_enumerator.o build/opt/mongo/db/query/planner_access.o build/opt/mongo/db/query/planner_analysis.o build/opt/mongo/db/query/planner_ixselect.o build/opt/mongo/db/query/query_planner.o build/opt/mongo/db/query/query_planner_common.o build/opt/mongo/db/query/query_solution.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_planner.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_remove_shard_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_remove_shard_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/check_sharding_index_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/check_sharding_index_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_add_shard_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_add_shard_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/move_chunk_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_enable_sharding_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_enable_sharding_command.cpp In file included from src/mongo/db/s/check_sharding_index_command.cpp:35: 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:69:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_remove_shard_from_zone_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_update_zone_key_range_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_add_shard_to_zone_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/rotatable_file_writer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbhelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/dbhelpers.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/counters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/counters.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_interface_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -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 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_interface_icu.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/s/libcommands_db_s.a build/opt/mongo/db/s/check_sharding_index_command.o build/opt/mongo/db/s/cleanup_orphaned_cmd.o build/opt/mongo/db/s/clone_catalog_data_command.o build/opt/mongo/db/s/clone_collection_options_from_primary_shard_cmd.o build/opt/mongo/db/s/config/configsvr_add_shard_command.o build/opt/mongo/db/s/config/configsvr_add_shard_to_zone_command.o build/opt/mongo/db/s/config/configsvr_commit_chunk_migration_command.o build/opt/mongo/db/s/config/configsvr_commit_move_primary_command.o build/opt/mongo/db/s/config/configsvr_control_balancer_command.o build/opt/mongo/db/s/config/configsvr_create_collection_command.o build/opt/mongo/db/s/config/configsvr_create_database_command.o build/opt/mongo/db/s/config/configsvr_drop_collection_command.o build/opt/mongo/db/s/config/configsvr_drop_database_command.o build/opt/mongo/db/s/config/configsvr_enable_sharding_command.o build/opt/mongo/db/s/config/configsvr_merge_chunk_command.o build/opt/mongo/db/s/config/configsvr_move_chunk_command.o build/opt/mongo/db/s/config/configsvr_move_primary_command.o build/opt/mongo/db/s/config/configsvr_remove_shard_command.o build/opt/mongo/db/s/config/configsvr_remove_shard_from_zone_command.o build/opt/mongo/db/s/config/configsvr_shard_collection_command.o build/opt/mongo/db/s/config/configsvr_split_chunk_command.o build/opt/mongo/db/s/config/configsvr_update_zone_key_range_command.o build/opt/mongo/db/s/flush_database_cache_updates_command.o build/opt/mongo/db/s/flush_routing_table_cache_updates_command.o build/opt/mongo/db/s/get_database_version_command.o build/opt/mongo/db/s/get_shard_version_command.o build/opt/mongo/db/s/merge_chunks_command.o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy_commands.o build/opt/mongo/db/s/migration_destination_manager_legacy_commands.o build/opt/mongo/db/s/move_chunk_command.o build/opt/mongo/db/s/move_primary_command.o build/opt/mongo/db/s/set_shard_version_command.o build/opt/mongo/db/s/shardsvr_shard_collection.o build/opt/mongo/db/s/sharding_server_status.o build/opt/mongo/db/s/sharding_state_command.o build/opt/mongo/db/s/split_chunk_command.o build/opt/mongo/db/s/split_vector_command.o build/opt/mongo/db/s/unset_sharding_command.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.c ar rcsTD build/opt/mongo/db/stats/libcounters.a build/opt/mongo/db/stats/counters.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libcounters.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/restriction_environment.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/restriction_environment.cpp Skipping ranlib for thin archive build/opt/mongo/db/s/libcommands_db_s.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_entry_point_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_entry_point_mongod.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unistr_titlecase_brkiter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/taiwncal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/taiwncal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/do_txn_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/do_txn_cmd.cpp ar rcsTD build/opt/mongo/db/auth/libauthentication_restriction.a build/opt/mongo/db/auth/restriction_environment.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthentication_restriction.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmutfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tmutfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/base64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/base64.cpp 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/background.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/spin_lock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/concurrency/spin_lock.cpp ar rcsTD build/opt/mongo/util/concurrency/libspin_lock.a build/opt/mongo/util/concurrency/spin_lock.o Skipping ranlib for thin archive build/opt/mongo/util/concurrency/libspin_lock.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/connection_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/connection_pool.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/curop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/curop.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uinit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uinit.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_sum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_sum.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_sum.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_sum.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a build/opt/mongo/s/catalog/dist_lock_catalog_impl.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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/sharding_catalog_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/sharding_catalog_client.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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/client/connection_pool.cpp: In static member function 'static void mongo::ConnectionPool::_destroyConnection_inlock(mongo::ConnectionPool::ConnectionList*, std::__cxx11::list::iterator)': src/mongo/client/connection_pool.cpp:242:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 242 | void ConnectionPool::_destroyConnection_inlock(ConnectionList* connList, | ^~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp: In member function 'void mongo::ConnectionPool::destroyConnection(std::__cxx11::list::iterator)': src/mongo/client/connection_pool.cpp:237:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 237 | void ConnectionPool::destroyConnection(ConnectionList::iterator iter) { | ^~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp:237:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 src/mongo/client/connection_pool.cpp:239:30: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 239 | _destroyConnection_inlock(&_inUseConnections, iter); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp: In destructor 'mongo::ConnectionPool::ConnectionPtr::~ConnectionPtr()': src/mongo/client/connection_pool.cpp:261:33: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 261 | _pool->destroyConnection(_connInfo); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ src/mongo/client/connection_pool.cpp: In member function 'void mongo::ConnectionPool::_cleanUpOlderThan_inlock(mongo::Date_t, mongo::ConnectionPool::ConnectionList*)': src/mongo/client/connection_pool.cpp:92:38: note: parameter passing for argument of type 'std::_List_iterator' changed in GCC 7.1 92 | _destroyConnection_inlock(hostConns, iter++); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/client/connection_pool.h:33, from src/mongo/client/connection_pool.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member 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 = mongo::HostAndPort; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/client/connection_pool.h:33, from src/mongo/client/connection_pool.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'std::__cxx11::list::iterator mongo::ConnectionPool::acquireConnection(const mongo::HostAndPort&, mongo::Date_t, mongo::Milliseconds)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, src/mongo/client/connection_pool.cpp:169:34: note: parameter passing for argument of type 'const iterator' {aka 'const std::_List_iterator'} changed in GCC 7.1 169 | _destroyConnection_inlock(&_inUseConnections, candidate); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp:164:38: note: parameter passing for argument of type 'const iterator' {aka 'const std::_List_iterator'} changed in GCC 7.1 164 | _destroyConnection_inlock(&_inUseConnections, candidate); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp: In member function 'void mongo::ConnectionPool::releaseConnection(std::__cxx11::list::iterator, mongo::Date_t)': src/mongo/client/connection_pool.cpp:223:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 223 | void ConnectionPool::releaseConnection(ConnectionList::iterator iter, const Date_t now) { | ^~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp:226:34: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 226 | _destroyConnection_inlock(&_inUseConnections, iter); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/client/connection_pool.h:33, from src/mongo/client/connection_pool.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, src/mongo/client/connection_pool.cpp: In member function 'void mongo::ConnectionPool::ConnectionPtr::done(mongo::Date_t)': src/mongo/client/connection_pool.cpp:278:29: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 278 | _pool->releaseConnection(_connInfo, now); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_sum.cpp:36: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/sharding_catalog_client_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/sharding_catalog_client_impl.cpp In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_sum.cpp:36: 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ ar rcsTD build/opt/mongo/s/catalog/libsharding_catalog_client.a build/opt/mongo/s/catalog/sharding_catalog_client.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libsharding_catalog_client.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/utrans.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/background.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_commands_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_commands_helpers.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/string.h:495, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/cstring:42, from src/mongo/platform/atomic_word.h:34, from src/mongo/base/counter.h:35, from src/mongo/db/commands.h:37, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: In function 'char* strncpy(char*, const char*, size_t)', inlined from 'mongo::ThreadSafeString& mongo::ThreadSafeString::operator=(mongo::StringData)' at src/mongo/util/thread_safe_string.h:66:16, inlined from 'mongo::ProgressMeter::ProgressMeter()' at src/mongo/util/progress_meter.h:56:17, inlined from 'mongo::CurOp::CurOp(mongo::OperationContext*, mongo::CurOp::CurOpStack*)' at src/mongo/db/curop.cpp:283:72: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, unsigned int)' output truncated copying between 0 and 8 bytes from a string of length 8 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_inclusion_projection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/parsed_inclusion_projection.h:35, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/parsed_inclusion_projection.h:35, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_client_sharded.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_client_sharded.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_inclusion_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_inclusion_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servlk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/servlk.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.c In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/commands/cluster_commands_helpers.h:34, from src/mongo/s/commands/cluster_commands_helpers.cpp:37: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::AsyncRequestsSender::Response}; _Tp = mongo::AsyncRequestsSender::Response; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_inclusion_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'std::vector mongo::gatherResponses(mongo::OperationContext*, mongo::StringData, const mongo::ReadPreferenceSetting&, mongo::Shard::RetryPolicy, const std::vector&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/s/catalog/sharding_catalog_client_impl.h:33, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::StatusWith > mongo::ShardingCatalogClientImpl::getNewKeys(mongo::OperationContext*, mongo::StringData, const mongo::LogicalTime&, mongo::repl::ReadConcernLevel)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::CollectionType&}; _Tp = mongo::CollectionType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ShardType&}; _Tp = mongo::ShardType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/client/connection_string.h:36, from src/mongo/s/catalog/sharding_catalog_client_impl.h:33, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::StatusWith > mongo::ShardingCatalogClientImpl::getCollections(mongo::OperationContext*, const string*, mongo::repl::OpTime*, mongo::repl::ReadConcernLevel)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/rotatable_file_manager.cpp /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::StatusWith > > mongo::ShardingCatalogClientImpl::getAllShards(mongo::OperationContext*, mongo::repl::ReadConcernLevel)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ 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:409:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 409 | 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:329:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 329 | Expression::parseOperand(_expCtx, elem, _expCtx->variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/s/catalog/sharding_catalog_client_impl.h:33, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ChunkType&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/client/connection_string.h:36, from src/mongo/s/catalog/sharding_catalog_client_impl.h:33, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::StatusWith > mongo::ShardingCatalogClientImpl::getChunks(mongo::OperationContext*, const mongo::BSONObj&, const mongo::BSONObj&, boost::optional, mongo::repl::OpTime*, mongo::repl::ReadConcernLevel)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/duration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/duration.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/command_generic_argument.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/command_generic_argument.cpp ar rcsTD build/opt/mongo/db/libmongohasher.a build/opt/mongo/db/hasher.o Skipping ranlib for thin archive build/opt/mongo/db/libmongohasher.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/resource_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/resource_pattern.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/scriptset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/scriptset.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/oid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/oid.cpp /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 ar rcsTD build/opt/mongo/s/catalog/libsharding_catalog_client_impl.a build/opt/mongo/s/catalog/sharding_catalog_client_impl.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libsharding_catalog_client_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/parse_log_component_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/parse_log_component_settings.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/extent_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/extent_manager.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rollback_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rollback_checker.cpp ar rcsTD build/opt/mongo/util/libmd5.a build/opt/mongo/util/md5.o build/opt/mongo/util/password_digest.o Skipping ranlib for thin archive build/opt/mongo/util/libmd5.a 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/initializer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/secure_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/secure_allocator.cpp ar rcsTD build/opt/mongo/logger/libparse_log_component_settings.a build/opt/mongo/logger/parse_log_component_settings.o Skipping ranlib for thin archive build/opt/mongo/logger/libparse_log_component_settings.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_entry_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/oplog_entry_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nultrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/nultrans.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/asio-master/asio/src/asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include src/third_party/asio-master/asio/src/asio.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonmisc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/bsonmisc.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.c ar rcsTD build/opt/mongo/db/librange_arithmetic.a build/opt/mongo/db/range_arithmetic.o Skipping ranlib for thin archive build/opt/mongo/db/librange_arithmetic.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/cached_plan.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/valueformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/valueformatter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/third_party/asio-master/libasio.a build/opt/third_party/asio-master/asio/src/asio.o Skipping ranlib for thin archive build/opt/third_party/asio-master/libasio.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.c In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/rewrite_expr.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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/rewrite_expr.h:36, from src/mongo/db/matcher/rewrite_expr.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/rewrite_expr.h:36, from src/mongo/db/matcher/rewrite_expr.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_algo.cpp In file included from src/mongo/db/matcher/rewrite_expr.h:37, from src/mongo/db/matcher/rewrite_expr.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:38, from src/mongo/db/matcher/rewrite_expr.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_algo.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_algo.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:89:25: warning: redundant move in return statement [-Wredundant-move] 89 | return std::move(andMatch); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:89: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:110:25: warning: redundant move in return statement [-Wredundant-move] 110 | return std::move(orMatch); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:110: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:158:21: warning: redundant move in return statement [-Wredundant-move] 158 | return std::move(eqMatchExpr); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:158:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:38: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:41: 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:59:25: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59: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:261:21: warning: redundant move in return statement [-Wredundant-move] 261 | return std::move(splitAnd); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:261: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:277:21: warning: redundant move in return statement [-Wredundant-move] 277 | return std::move(splitNor); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:277:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/rewrite_expr.cpp:150:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 150 | 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:147:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 147 | return _buildComparisonMatchExpression(cmpOperator, cmpObj.firstElement()); | ^ src/mongo/db/matcher/rewrite_expr.cpp:147:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_xor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_array.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_array.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_tree.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_tree.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:33: 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:59:25: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/expression_array.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/expression_array.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_array.cpp:33: 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:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87: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:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142: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:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/matcher.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression.h:41, from src/mongo/db/matcher/expression.cpp:33: src/mongo/db/matcher/matchable.h: In member function 'virtual mongo::ElementIterator* mongo::BSONElementViewMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/matchable.h:134:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 134 | return new BSONElementIterator(path, suffixIndex, _elem); | ^ src/mongo/db/matcher/matchable.h:134:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/matchable.h:137:24: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 137 | _iterator.reset(path, suffixIndex, _elem); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/matchable.h:137:24: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression.cpp: In member function 'virtual bool mongo::MatchExpression::matchesBSONElement(mongo::BSONElement, mongo::MatchDetails*) const': src/mongo/db/matcher/expression.cpp:60:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 60 | bool MatchExpression::matchesBSONElement(BSONElement elem, MatchDetails* details) const { | ^~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_with_placeholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_with_placeholder.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:39, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:33: src/mongo/db/matcher/expression_with_placeholder.h: In member function 'bool mongo::InternalSchemaAllowedPropertiesMatchExpression::_matchesBSONObj(const mongo::BSONObj&) const': src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_with_placeholder.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_with_placeholder.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_cond.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/i18n/decNumber.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 -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 -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/decNumber.c In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_with_placeholder.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_with_placeholder.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_arity.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_arity.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:33: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:118:38: required from here src/mongo/db/matcher/expression_arity.h:133:31: warning: redundant move in return statement [-Wredundant-move] 133 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:133:31: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbmain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/db/dbmain.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/dbhash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/dbhash.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/schriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/schriter.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/interval.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/expression_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/expression_index.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_with_placeholder.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/index_bounds_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/index_bounds_builder.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.cpp:31: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/matcher/libexpressions.a build/opt/mongo/db/matcher/expression.o build/opt/mongo/db/matcher/expression_algo.o build/opt/mongo/db/matcher/expression_array.o build/opt/mongo/db/matcher/expression_expr.o build/opt/mongo/db/matcher/expression_geo.o build/opt/mongo/db/matcher/expression_internal_expr_eq.o build/opt/mongo/db/matcher/expression_leaf.o build/opt/mongo/db/matcher/expression_parser.o build/opt/mongo/db/matcher/expression_text_base.o build/opt/mongo/db/matcher/expression_text_noop.o build/opt/mongo/db/matcher/expression_tree.o build/opt/mongo/db/matcher/expression_type.o build/opt/mongo/db/matcher/expression_where_base.o build/opt/mongo/db/matcher/expression_where_noop.o build/opt/mongo/db/matcher/expression_with_placeholder.o build/opt/mongo/db/matcher/extensions_callback.o build/opt/mongo/db/matcher/extensions_callback_noop.o build/opt/mongo/db/matcher/match_details.o build/opt/mongo/db/matcher/matchable.o build/opt/mongo/db/matcher/matcher.o build/opt/mongo/db/matcher/matcher_type_set.o build/opt/mongo/db/matcher/rewrite_expr.o build/opt/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.o build/opt/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.o build/opt/mongo/db/matcher/schema/expression_internal_schema_cond.o build/opt/mongo/db/matcher/schema/expression_internal_schema_eq.o build/opt/mongo/db/matcher/schema/expression_internal_schema_fmod.o build/opt/mongo/db/matcher/schema/expression_internal_schema_match_array_index.o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_array_items.o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_properties.o build/opt/mongo/db/matcher/schema/expression_internal_schema_object_match.o build/opt/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.o build/opt/mongo/db/matcher/schema/expression_internal_schema_str_length.o build/opt/mongo/db/matcher/schema/expression_internal_schema_unique_items.o build/opt/mongo/db/matcher/schema/expression_internal_schema_xor.o build/opt/mongo/db/matcher/schema/json_schema_parser.o Skipping ranlib for thin archive build/opt/mongo/db/matcher/libexpressions.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/update.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/normalizer2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/normalizer2.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/operation_latency_histogram.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/operation_latency_histogram.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libserver_status_core.a build/opt/mongo/db/commands/server_status_internal.o build/opt/mongo/db/commands/server_status_metric.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libserver_status_core.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/system_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/system_error.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/base/libsystem_error.a build/opt/mongo/base/system_error.o Skipping ranlib for thin archive build/opt/mongo/base/libsystem_error.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.c In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/path.cpp ar rcsTD build/opt/mongo/db/query/libindex_bounds.a build/opt/mongo/db/query/expression_index.o build/opt/mongo/db/query/expression_index_knobs.o build/opt/mongo/db/query/index_bounds.o build/opt/mongo/db/query/index_bounds_builder.o build/opt/mongo/db/query/interval.o Skipping ranlib for thin archive build/opt/mongo/db/query/libindex_bounds.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.c ar rcsTD build/opt/mongo/db/repl/libdbcheck.a build/opt/mongo/db/repl/dbcheck.o build/opt/mongo/db/repl/dbcheck_idl.o build/opt/mongo/db/repl/dbcheck_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdbcheck.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/legacy_request_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/legacy_request_builder.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:54:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 54 | void ElementIterator::Context::reset(BSONElement element, BSONElement arrayOffset) { | ^~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:54: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:128:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 128 | void BSONElementIterator::_setTraversalStart(size_t suffixIndex, BSONElement elementToIterate) { | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In constructor 'mongo::BSONElementIterator::BSONElementIterator(const mongo::ElementPath*, size_t, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:87:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 87 | BSONElementIterator::BSONElementIterator(const ElementPath* path, | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:91:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 91 | _setTraversalStart(suffixIndex, 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:102:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 102 | void BSONElementIterator::reset(const ElementPath* path, | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:108:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 108 | _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:161:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 161 | void BSONElementIterator::ArrayIterationState::startIterator(BSONElement e) { | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In member function 'virtual bool mongo::BSONElementIterator::more()': src/mongo/db/matcher/path.cpp:263:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 263 | _arrayIterationState.startIterator(_traversalStart); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:321:61: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 321 | real->_arrayIterationState.startIterator(eltInArray); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/legacy_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/legacy_request.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.c ar rcsTD build/opt/mongo/db/libttl_collection_cache.a build/opt/mongo/db/ttl_collection_cache.o Skipping ranlib for thin archive build/opt/mongo/db/libttl_collection_cache.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/util/bson_extract.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/util/bson_extract.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_catalog.cpp ar rcsTD build/opt/mongo/rpc/liblegacy_request.a build/opt/mongo/rpc/legacy_request.o build/opt/mongo/rpc/legacy_request_builder.o Skipping ranlib for thin archive build/opt/mongo/rpc/liblegacy_request.a ar rcsTD build/opt/mongo/db/libservice_context_d.a build/opt/mongo/db/service_entry_point_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_context_d.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/base/error_codes.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/locid.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustr_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ustr_cnv.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtitvfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dtitvfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulation_statement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulation_statement.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/replica_set_monitor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/replica_set_monitor_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/accumulation_statement.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/accumulation_statement.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/accumulation_statement.cpp: In static member function 'static mongo::AccumulationStatement mongo::AccumulationStatement::parseAccumulationStatement(const boost::intrusive_ptr&, const mongo::BSONElement&, const mongo::VariablesParseState&)': src/mongo/db/pipeline/accumulation_statement.cpp:102:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 102 | Expression::parseOperand(expCtx, specElem, vps), | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/set_feature_compatibility_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/set_feature_compatibility_version_command.cpp ar rcsTD build/opt/mongo/db/stats/libtop.a build/opt/mongo/db/stats/top.o build/opt/mongo/db/stats/operation_latency_histogram.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libtop.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/driverHelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/driverHelpers.cpp ar rcsTD build/opt/mongo/db/storage/kv/libkv_engine_core.a build/opt/mongo/db/storage/kv/kv_catalog.o build/opt/mongo/db/storage/kv/kv_collection_catalog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_engine_core.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/clone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/clone.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/compact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/compact.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:47: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/group_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/group_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/parallel_collection_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/parallel_collection_scan.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/oplog_application_checks.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uscript.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 -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 -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/uscript.c In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationcompare.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationcompare.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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/init.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/version.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/validate_locale.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/bson/mutable/element.h:37, from src/mongo/db/auth/privilege.h:35, from src/mongo/db/commands.h:41, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: 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:42:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 42 | return uassertStatusOK(UUID::parse(uiElem)); | ~~~~~~~~~~~^~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/posix_fadvise.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/json.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/json.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/stack_locator.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/simple_bsonelement_comparator.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/message_event_utf8_encoder.cpp ar rcsTD build/opt/mongo/db/commands/libmongod.a build/opt/mongo/db/commands/apply_ops_cmd.o build/opt/mongo/db/commands/clone.o build/opt/mongo/db/commands/clone_collection.o build/opt/mongo/db/commands/collection_to_capped.o build/opt/mongo/db/commands/compact.o build/opt/mongo/db/commands/copydb.o build/opt/mongo/db/commands/copydb_start_commands.o build/opt/mongo/db/commands/cpuload.o build/opt/mongo/db/commands/dbcheck.o build/opt/mongo/db/commands/dbcommands_d.o build/opt/mongo/db/commands/dbhash.o build/opt/mongo/db/commands/do_txn_cmd.o build/opt/mongo/db/commands/driverHelpers.o build/opt/mongo/db/commands/eval.o build/opt/mongo/db/commands/group_cmd.o build/opt/mongo/db/commands/haystack.o build/opt/mongo/db/commands/invalidate_view_catalog_command.o build/opt/mongo/db/commands/mr.o build/opt/mongo/db/commands/oplog_application_checks.o build/opt/mongo/db/commands/oplog_note.o build/opt/mongo/db/commands/parallel_collection_scan.o build/opt/mongo/db/commands/resize_oplog.o build/opt/mongo/db/commands/restart_catalog_command.o build/opt/mongo/db/commands/set_feature_compatibility_version_command.o build/opt/mongo/db/commands/shutdown_d.o build/opt/mongo/db/commands/snapshot_management.o build/opt/mongo/db/commands/top_command.o build/opt/mongo/db/commands/touch.o build/opt/mongo/db/commands/txn_cmds.o build/opt/mongo/db/commands/user_management_commands.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmongod.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/global_initializer.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/logger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/logger.cpp In file included from src/mongo/bson/simple_bsonelement_comparator.cpp:33: 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:52:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 52 | hashCombineBSONElement(seed, toHash, ComparisonRules::kConsiderFieldName, nullptr); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/log_manager.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/system_clock_source.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/system_tick_source.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/shared_library_posix.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/file.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/startup_test.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/timestamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/timestamp.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/status.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonelement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/bsonelement.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/data_type_terminated.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/initializer_dependency_graph.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/base/string_data.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/stack_locator_linux.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/uuid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/uuid.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/process_id.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/logger/log_component_settings.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/util/exit.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/platform/decimal128.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/bson/simple_bsonobj_comparator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/working_set_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/working_set_common.cpp ar rcsTD build/opt/mongo/db/stats/libtimer_stats.a build/opt/mongo/db/stats/timer_stats.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libtimer_stats.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.c src/mongo/util/uuid.cpp: In static member function 'static mongo::StatusWith mongo::UUID::parse(mongo::BSONElement)': src/mongo/util/uuid.cpp:55:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 55 | 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:87:42: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 87 | auto res = parse(obj.getField("uuid")); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_processor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_processor.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.c ar rcsTD build/opt/mongo/s/client/libshard_interface.a build/opt/mongo/s/client/shard.o In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/s/client/libshard_interface.a In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/prefetch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/prefetch.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call 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/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/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/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/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/stringutils.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 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/libbase.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/retryable_writes_stats.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/session.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/transactions_stats_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libprefetch.a build/opt/mongo/db/prefetch.o Skipping ranlib for thin archive build/opt/mongo/db/libprefetch.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_transactions_metrics.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/single_transaction_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/single_transaction_stats.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, 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::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_database_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_database_catalog_entry.cpp /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unesctrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unesctrn.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/cstring.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 -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 -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/cstring.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/private/socket_poll.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_options.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/libmmap_v1_options.a build/opt/mongo/db/storage/mmap_v1/mmap_v1_options.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libmmap_v1_options.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/sharding_egress_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/sharding_egress_metadata_hook.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/umsg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/umsg.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbisetb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbbisetb.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_document.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/index_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/index_scan.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_names.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index_names.cpp ar rcsTD build/opt/mongo/db/libcatalog_raii.a build/opt/mongo/db/catalog_raii.o build/opt/mongo/db/retryable_writes_stats.o build/opt/mongo/db/server_transactions_metrics.o build/opt/mongo/db/session.o build/opt/mongo/db/session_catalog.o build/opt/mongo/db/single_transaction_stats.o build/opt/mongo/db/transaction_history_iterator.o build/opt/mongo/db/session_txn_record_gen.o build/opt/mongo/db/transactions_stats_gen.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/plan_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/plan_stage.cpp Skipping ranlib for thin archive build/opt/mongo/db/libcatalog_raii.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/index_scan.h:37, from src/mongo/db/exec/index_scan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/index_scan.h:37, from src/mongo/db/exec/index_scan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/index_scan.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/index_scan.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcollection.a build/opt/mongo/db/catalog/collection.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_zlib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/message_compressor_zlib.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/connection_pool_tl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/connection_pool_tl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_bld.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_bld.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/connection_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/connection_string.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.h:36, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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) [with _Key = mongo::RecordId; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2504:5: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2504 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const _Key&) [with _Key = mongo::RecordId; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2525:4: note: parameter passing for argument of type 'std::_Rb_tree_const_iterator >' changed in GCC 7.1 2525 | _M_erase_aux(__first++); | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual void mongo::EphemeralForTestRecordStore::InsertChange::rollback()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1220:2: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 1220 | _M_erase_aux(__position); | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual void mongo::EphemeralForTestRecordStore::cappedTruncateAfter(mongo::OperationContext*, mongo::RecordId, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1220:2: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 1220 | _M_erase_aux(__position); | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/index_scan.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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 = mongo::RecordId; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.h:36, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'virtual mongo::StatusWith mongo::EphemeralForTestRecordStore::insertRecord(mongo::OperationContext*, const char*, int, mongo::Timestamp, bool)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'virtual mongo::Status mongo::EphemeralForTestRecordStore::insertRecordsWithDocWriter(mongo::OperationContext*, const mongo::DocWriter* const*, const mongo::Timestamp*, size_t, mongo::RecordId*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'virtual void mongo::EphemeralForTestRecordStore::RemoveChange::rollback()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/config_server_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/config_server_catalog_cache_loader.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/group.cpp In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/exec/index_scan.h:37, from src/mongo/db/exec/index_scan.cpp:35: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::IndexKeyMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/transport/session.h:40, from src/mongo/db/service_context.h:48, from src/mongo/client/async_client.h:35, from src/mongo/executor/connection_pool_tl.h:35, from src/mongo/executor/connection_pool_tl.cpp:35: src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::executor::connection_pool_tl::TLConnection::setup(mongo::Milliseconds, mongo::executor::ConnectionPool::ConnectionInterface::SetupCallback)::::&; Args = {mongo::executor::RemoteCommandResponse}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:842:71: required from 'mongo::future_details::Future mongo::future_details::Future::then(Func&&) && [with Func = mongo::executor::connection_pool_tl::TLConnection::setup(mongo::Milliseconds, mongo::executor::ConnectionPool::ConnectionInterface::SetupCallback)::::; Result = void; = void; T = mongo::executor::RemoteCommandResponse]' src/mongo/executor/connection_pool_tl.cpp:189:18: required from here src/mongo/util/future.h:177:32: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(status); | ^ src/mongo/util/future.h:177:32: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_write_exec.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_buffer_blocking_queue.a build/opt/mongo/db/repl/oplog_buffer_blocking_queue.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_buffer_blocking_queue.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/projection_exec.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.c ar rcsTD build/opt/mongo/s/commands/libcluster_commands_helpers.a build/opt/mongo/s/commands/cluster_commands_helpers.o Skipping ranlib for thin archive build/opt/mongo/s/commands/libcluster_commands_helpers.a /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_merge_objects.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_merge_objects.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/projection_exec.h:35, from src/mongo/db/exec/projection_exec.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/projection_exec.h:35, from src/mongo/db/exec/projection_exec.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection_exec.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection_exec.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.c /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.c ar rcsTD build/opt/mongo/db/pipeline/libaggregation.a build/opt/mongo/db/pipeline/aggregation.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libaggregation.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvsel.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucnvsel.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/smpdtfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/cstr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/cstr.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/procparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/procparser.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection_exec.cpp:31: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:33: 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrutf8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/csrutf8.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/dependencies.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/dependencies.cpp ar rcsTD build/opt/mongo/db/libcommand_generic_argument.a build/opt/mongo/db/command_generic_argument.o Skipping ranlib for thin archive build/opt/mongo/db/libcommand_generic_argument.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/roll_back_local_operations.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/dependencies.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/dependencies.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/pipeline/dependencies.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/util/procparser.h:35, from src/mongo/util/procparser.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.c /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/stagedebug_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/stagedebug_cmd.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/util/procparser.h:35, from src/mongo/util/procparser.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::Status mongo::procparser::parseProcDiskStats(const std::vector&, mongo::StringData, mongo::BSONObjBuilder*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/util/procparser.cpp:630:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 630 | } | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_access_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_access_tracker.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbdirectclient.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/dbdirectclient.cpp ar rcsTD build/opt/mongo/util/libprocparser.a build/opt/mongo/util/procparser.o Skipping ranlib for thin archive build/opt/mongo/util/libprocparser.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/impersonation_session.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/action_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/action_set.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/action_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/auth/action_type.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/privilege.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/privilege.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/privilege_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/privilege_parser.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.c /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection_rs.cpp ar rcsTD build/opt/mongo/db/libdbdirectclient.a build/opt/mongo/db/dbdirectclient.o Skipping ranlib for thin archive build/opt/mongo/db/libdbdirectclient.a ar rcsTD build/opt/mongo/db/commands/libmongod_fcv.a build/opt/mongo/db/commands/feature_compatibility_version.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmongod_fcv.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.c 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:147: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:179:76: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 131 | return std::move(val); | ^ src/mongo/db/sessions_collection_rs.cpp:131: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:147: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:225:22: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:131: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:147: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:242:22: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:131: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:147: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:259:22: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:131: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::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:147:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:276:10: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:131:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/field_parser.h:328, from src/mongo/db/auth/privilege_parser.cpp:36: src/mongo/db/field_parser-inl.h: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField >&, std::vector*, std::string*) [with T = std::__cxx11::basic_string]': src/mongo/db/field_parser-inl.h:160:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 160 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ ar rcsTD build/opt/mongo/db/storage/libbson_collection_catalog_entry.a build/opt/mongo/db/storage/bson_collection_catalog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libbson_collection_catalog_entry.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/appendable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/appendable.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/upluralrules.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/upluralrules.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/tracking_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/tracking_metadata.cpp ar rcsTD build/opt/mongo/db/auth/libauthprivilege.a build/opt/mongo/db/auth/action_set.o build/opt/mongo/db/auth/action_type.o build/opt/mongo/db/auth/impersonation_session.o build/opt/mongo/db/auth/privilege.o build/opt/mongo/db/auth/privilege_parser.o build/opt/mongo/db/auth/resource_pattern.o build/opt/mongo/db/auth/user_management_commands_parser.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthprivilege.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucmndata.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 -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 -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/ucmndata.c ar rcsTD build/opt/mongo/db/libsessions_collection_rs.a build/opt/mongo/db/sessions_collection_rs.o 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_server_parameter.o build/opt/mongo/util/fail_point_service.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_rs.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/dist_lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_manager.cpp Skipping ranlib for thin archive build/opt/mongo/util/libfail_point.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_conf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_conf.cpp ar rcsTD build/opt/mongo/db/libcurop.a build/opt/mongo/db/curop.o Skipping ranlib for thin archive build/opt/mongo/db/libcurop.a ar rcsTD build/opt/mongo/db/libindex_names.a build/opt/mongo/db/index_names.o Skipping ranlib for thin archive build/opt/mongo/db/libindex_names.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/client/read_preference.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/ensure_sorted.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/ensure_sorted.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvisci.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 -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 -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/ucnvisci.c ar rcsTD build/opt/mongo/db/libcollection_index_usage_tracker.a build/opt/mongo/db/collection_index_usage_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/libcollection_index_usage_tracker.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_id_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_id_helpers.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/server_status_servers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/server_status_servers.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libbackground.a build/opt/mongo/db/background.o Skipping ranlib for thin archive build/opt/mongo/db/libbackground.a /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.c ar rcsTD build/opt/mongo/db/libintrospect.a build/opt/mongo/db/introspect.o Skipping ranlib for thin archive build/opt/mongo/db/libintrospect.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/udata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/udata.cpp ar rcsTD build/opt/mongo/db/liblogical_session_id_helpers.a build/opt/mongo/db/logical_session_id_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_id_helpers.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/brkeng.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/brkeng.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/config_server_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/config_server_metadata.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/add_shard_cmd_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/s/add_shard_cmd_gen.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.c ar rcsTD build/opt/mongo/db/librepair_database.a build/opt/mongo/db/repair_database.o Skipping ranlib for thin archive build/opt/mongo/db/librepair_database.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uvectr32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uvectr32.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/replset_dist_lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/catalog/replset_dist_lock_manager.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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libserver_status_servers.a build/opt/mongo/db/commands/server_status_servers.o 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/commands/libserver_status_servers.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/numfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/numfmt.cpp /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/calendar.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/calendar.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_pars.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_pars.cpp ar rcsTD build/opt/mongo/db/repl/librslog.a build/opt/mongo/db/repl/rslog.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librslog.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ustr_titlecase_brkiter.cpp ar rcsTD build/opt/mongo/db/storage/libencryption_hooks.a build/opt/mongo/db/storage/encryption_hooks.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libencryption_hooks.a ar rcsTD build/opt/mongo/libmongodmain.a build/opt/mongo/db/db.o Skipping ranlib for thin archive build/opt/mongo/libmongodmain.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/get_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/get_executor.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/merge_sort.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_yield_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_yield_policy.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/count_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/count_scan.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/eof.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/count_scan.h:37, from src/mongo/db/exec/count_scan.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/count_scan.h:37, from src/mongo/db/exec/count_scan.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/count_scan.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/count_scan.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/internal_plans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/internal_plans.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/count_scan.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/idhack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/idhack.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/oplogstart.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/oplogstart.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/oplogstart.h:36, from src/mongo/db/exec/oplogstart.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/oplogstart.h:36, from src/mongo/db/exec/oplogstart.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/oplogstart.h:36, from src/mongo/db/exec/oplogstart.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/oplogstart.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/oplogstart.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/parsed_delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/parsed_delete.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/update_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/update_result.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_executor.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/plan_executor.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/plan_executor.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/query/plan_executor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/query/plan_executor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/and_hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/and_hash.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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/and_sorted.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/and_sorted.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/and_hash.h:37, from src/mongo/db/exec/and_hash.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/and_hash.h:37, from src/mongo/db/exec/and_hash.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/and_sorted.h:38, from src/mongo/db/exec/and_sorted.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/and_sorted.h:38, from src/mongo/db/exec/and_sorted.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/query/plan_executor.cpp: In static member function 'static mongo::StatusWith > mongo::PlanExecutor::make(mongo::OperationContext*, std::unique_ptr, std::unique_ptr, std::unique_ptr, std::unique_ptr, const mongo::Collection*, mongo::NamespaceString, mongo::PlanExecutor::YieldPolicy)': src/mongo/db/query/plan_executor.cpp:216:21: warning: redundant move in return statement [-Wredundant-move] 216 | return std::move(exec); | ~~~~~~~~~^~~~~~ src/mongo/db/query/plan_executor.cpp:216:21: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/bson/bsonelement.h:44, from src/mongo/db/jsobj.h:49, from src/mongo/db/exec/plan_stats.h:40, from src/mongo/db/exec/plan_stage.h:36, from src/mongo/db/exec/and_hash.h:35, from src/mongo/db/exec/and_hash.cpp:31: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::erase(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator) [with _Key = mongo::RecordId; _Value = std::pair; _Alloc = std::allocator >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to; _H1 = mongo::RecordId::Hasher; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:1849:5: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::RecordId::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 1849 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | _H1, _H2, _Hash, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'virtual void mongo::AndHashStage::doInvalidate(mongo::OperationContext*, const mongo::RecordId&, mongo::InvalidationType)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::RecordId::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'mongo::PlanStage::StageState mongo::AndHashStage::hashOtherChildren(mongo::WorkingSetID*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::RecordId::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'virtual mongo::PlanStage::StageState mongo::AndHashStage::doWork(mongo::WorkingSetID*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::RecordId::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/find.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/change_stream_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/change_stream_proxy.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/query/plan_executor.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/clientcursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/clientcursor.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/write_stage_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/write_stage_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/write_ops_retryability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_retryability.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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/multiapplier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/multiapplier.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache_factory_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_cache_factory_mongod.cpp ar rcsTD build/opt/mongo/db/libquery_exec.a build/opt/mongo/db/clientcursor.o build/opt/mongo/db/cursor_manager.o build/opt/mongo/db/exec/and_hash.o build/opt/mongo/db/exec/and_sorted.o build/opt/mongo/db/exec/cached_plan.o build/opt/mongo/db/exec/change_stream_proxy.o build/opt/mongo/db/exec/collection_scan.o build/opt/mongo/db/exec/count.o build/opt/mongo/db/exec/count_scan.o build/opt/mongo/db/exec/delete.o build/opt/mongo/db/exec/distinct_scan.o build/opt/mongo/db/exec/ensure_sorted.o build/opt/mongo/db/exec/eof.o build/opt/mongo/db/exec/fetch.o build/opt/mongo/db/exec/geo_near.o build/opt/mongo/db/exec/group.o build/opt/mongo/db/exec/idhack.o build/opt/mongo/db/exec/index_iterator.o build/opt/mongo/db/exec/index_scan.o build/opt/mongo/db/exec/keep_mutations.o build/opt/mongo/db/exec/limit.o build/opt/mongo/db/exec/merge_sort.o build/opt/mongo/db/exec/multi_iterator.o build/opt/mongo/db/exec/multi_plan.o build/opt/mongo/db/exec/near.o build/opt/mongo/db/exec/oplogstart.o build/opt/mongo/db/exec/or.o build/opt/mongo/db/exec/pipeline_proxy.o build/opt/mongo/db/exec/plan_stage.o build/opt/mongo/db/exec/projection.o build/opt/mongo/db/exec/projection_exec.o build/opt/mongo/db/exec/queued_data_stage.o build/opt/mongo/db/exec/shard_filter.o build/opt/mongo/db/exec/skip.o build/opt/mongo/db/exec/sort.o build/opt/mongo/db/exec/sort_key_generator.o build/opt/mongo/db/exec/subplan.o build/opt/mongo/db/exec/text.o build/opt/mongo/db/exec/text_match.o build/opt/mongo/db/exec/text_or.o build/opt/mongo/db/exec/update.o build/opt/mongo/db/exec/working_set_common.o build/opt/mongo/db/exec/write_stage_common.o build/opt/mongo/db/ops/parsed_delete.o build/opt/mongo/db/ops/parsed_update.o build/opt/mongo/db/ops/update_lifecycle_impl.o build/opt/mongo/db/ops/update_result.o build/opt/mongo/db/query/explain.o build/opt/mongo/db/query/find.o build/opt/mongo/db/pipeline/document_source_cursor.o build/opt/mongo/db/pipeline/pipeline_d.o build/opt/mongo/db/query/get_executor.o build/opt/mongo/db/query/internal_plans.o build/opt/mongo/db/query/plan_executor.o build/opt/mongo/db/query/plan_ranker.o build/opt/mongo/db/query/plan_yield_policy.o build/opt/mongo/db/query/query_yield.o build/opt/mongo/db/query/stage_builder.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/crypto/sha1_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/crypto/sha1_block.cpp Skipping ranlib for thin archive build/opt/mongo/db/libquery_exec.a ar rcsTD build/opt/mongo/client/libconnection_pool.a build/opt/mongo/client/connection_pool.o Skipping ranlib for thin archive build/opt/mongo/client/libconnection_pool.a /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_controller.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/logical_session_cache_stats_gen.cpp ar rcsTD build/opt/mongo/crypto/libsha1_block.a build/opt/mongo/crypto/sha1_block.o Skipping ranlib for thin archive build/opt/mongo/crypto/libsha1_block.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/unicode/string.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_state.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/storage_stats.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.c ar rcsTD build/opt/mongo/db/repl/libmultiapplier.a build/opt/mongo/db/repl/multiapplier.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libmultiapplier.a ar rcsTD build/opt/mongo/db/query/collation/libcollator_icu.a build/opt/mongo/db/query/collation/collator_factory_icu.o build/opt/mongo/db/query/collation/collator_interface_icu.o Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_icu.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/currunit.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationfastlatinbuilder.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.c /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/s2_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/s2_access_method.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/utrie.cpp ar rcsTD build/opt/third_party/s2/util/math/libmath.a build/opt/third_party/s2/util/math/mathutil.o ar rcsTD build/opt/mongo/db/liblogical_session_cache.a build/opt/mongo/db/logical_session_cache.o build/opt/mongo/db/logical_session_cache_stats_gen.o Skipping ranlib for thin archive build/opt/third_party/s2/util/math/libmath.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.c Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache.a 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/audit_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/audit_metadata.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/getmore_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/getmore_request.cpp ar rcsTD build/opt/mongo/rpc/libaudit_metadata.a build/opt/mongo/rpc/metadata/audit_metadata.o Skipping ranlib for thin archive build/opt/mongo/rpc/libaudit_metadata.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_id_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/logical_session_id_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_id.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_server_status_section.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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/initialize_operation_session_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/initialize_operation_session_info.cpp src/mongo/db/query/getmore_request.cpp: In static member function 'static mongo::StatusWith mongo::GetMoreRequest::parseFromBSON(const string&, const mongo::BSONObj&)': src/mongo/db/query/getmore_request.cpp:143:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 143 | auto maxAwaitDataTime = QueryRequest::parseMaxTimeMS(el); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_entry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/parallel.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/client/parallel.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimalformatpattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/decimalformatpattern.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/transport_layer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/transport_layer.cpp ar rcsTD build/opt/mongo/db/liblogical_session_id.a build/opt/mongo/db/logical_session_id.o build/opt/mongo/db/logical_session_id_gen.o build/opt/mongo/db/refresh_sessions_gen.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_id.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ulist.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 -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 -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/ulist.c /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/btree_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/btree_access_method.cpp ar rcsTD build/opt/mongo/db/liblogical_session_cache_impl.a build/opt/mongo/db/initialize_operation_session_info.o build/opt/mongo/db/logical_session_cache_impl.o build/opt/mongo/db/logical_session_server_status_section.o build/opt/mongo/db/commands/end_sessions_gen.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache_impl.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_state_machine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/service_state_machine.cpp ar rcsTD build/opt/mongo/db/libinitialize_snmp.a build/opt/mongo/db/initialize_snmp.o Skipping ranlib for thin archive build/opt/mongo/db/libinitialize_snmp.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uiter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/dictionarydata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/dictionarydata.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/sharedobject.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/sharedobject.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tztrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/tztrans.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.c ar rcsTD build/opt/mongo/db/repl/libread_concern_args.a build/opt/mongo/db/repl/read_concern_args.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libread_concern_args.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset_closure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uniset_closure.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/bytestrie.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/measunit.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/haystack_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/haystack_access_method.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/message_compressor_metrics.cpp ar rcsTD build/opt/mongo/transport/libservice_entry_point.a build/opt/mongo/transport/service_entry_point_impl.o build/opt/mongo/transport/service_state_machine.o Skipping ranlib for thin archive build/opt/mongo/transport/libservice_entry_point.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/extensions_callback_real.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback_real.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_real.h:33, from src/mongo/db/matcher/extensions_callback_real.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_real.h:33, from src/mongo/db/matcher/extensions_callback_real.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_real.h:33, from src/mongo/db/matcher/extensions_callback_real.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text.h:36, from src/mongo/db/matcher/expression_text.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text.h:36, from src/mongo/db/matcher/expression_text.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text.h:36, from src/mongo/db/matcher/expression_text.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/matcher/expression_text.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libsharding_legacy_api.a build/opt/mongo/s/client/parallel.o build/opt/mongo/s/client/shard_connection.o build/opt/mongo/s/client/version_manager.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_legacy_api.a ar rcsTD build/opt/mongo/client/libconnection_string.a build/opt/mongo/client/connection_string.o build/opt/mongo/client/mongo_uri.o Skipping ranlib for thin archive build/opt/mongo/client/libconnection_string.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.c src/mongo/db/matcher/extensions_callback_real.cpp: In member function 'virtual mongo::StatusWithMatchExpression mongo::ExtensionsCallbackReal::parseText(mongo::BSONElement) const': src/mongo/db/matcher/extensions_callback_real.cpp:44:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 44 | StatusWithMatchExpression ExtensionsCallbackReal::parseText(BSONElement text) const { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback_real.cpp:45:60: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 45 | auto textParams = extractTextMatchExpressionParams(text); | ^ src/mongo/db/matcher/extensions_callback_real.cpp: In member function 'virtual mongo::StatusWithMatchExpression mongo::ExtensionsCallbackReal::parseWhere(mongo::BSONElement) const': src/mongo/db/matcher/extensions_callback_real.cpp:56:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 56 | StatusWithMatchExpression ExtensionsCallbackReal::parseWhere(BSONElement where) const { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback_real.cpp:57:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 57 | auto whereParams = extractWhereMatchExpressionParams(where); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrcase_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_locale.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/msgfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/msgfmt.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/decimfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/command_request_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/command_request_builder.cpp ar rcsTD build/opt/mongo/db/fts/unicode/libunicode.a build/opt/mongo/db/fts/unicode/codepoints_casefold.o build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.o build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.o build/opt/mongo/db/fts/unicode/codepoints_diacritic_map.o build/opt/mongo/db/fts/unicode/string.o Skipping ranlib for thin archive build/opt/mongo/db/fts/unicode/libunicode.a ar rcsTD build/opt/mongo/db/storage/mmap_v1/librecord_access_tracker.a build/opt/mongo/db/storage/mmap_v1/record_access_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/librecord_access_tracker.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvdisp.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 -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 -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/ucnvdisp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands.cpp 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:114:21: warning: redundant move in return statement [-Wredundant-move] 114 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text.cpp:114:21: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/index/index_access_method.h:37, from src/mongo/db/index/haystack_access_method.h:34, from src/mongo/db/index/haystack_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::RecordId&}; _Tp = mongo::RecordId; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/index/index_access_method.h:37, from src/mongo/db/index/haystack_access_method.h:34, from src/mongo/db/index/haystack_access_method.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::HaystackAccessMethod::searchCommand(mongo::OperationContext*, mongo::Collection*, const mongo::BSONObj&, double, const mongo::BSONObj&, mongo::BSONObjBuilder*, unsigned int)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_builder.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_builder.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/matcher/expression_text.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ztrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ztrans.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucoleitr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucoleitr.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_intel_decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/shim_intel_decimal128.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uniset.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csdetect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/csdetect.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_builder.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/util_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/util_props.cpp 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 ar rcsTD build/opt/mongo/db/storage/mmap_v1/libbtree.a build/opt/mongo/db/storage/mmap_v1/btree/btree_logic.o build/opt/mongo/db/storage/mmap_v1/btree/btree_interface.o build/opt/mongo/db/storage/mmap_v1/btree/btree_ondisk.o build/opt/mongo/db/storage/mmap_v1/btree/key.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libbtree.a ar rcsTD build/opt/mongo/scripting/libscripting_server.a build/opt/mongo/scripting/scripting_server.o In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/matcher/libexpressions_mongod_only.a build/opt/mongo/db/matcher/extensions_callback_real.o build/opt/mongo/db/matcher/expression_text.o build/opt/mongo/db/matcher/expression_where.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting_server.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batch_write_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_write_op.cpp Skipping ranlib for thin archive build/opt/mongo/db/matcher/libexpressions_mongod_only.a ar rcsTD build/opt/mongo/db/pipeline/libparsed_aggregation_projection.a build/opt/mongo/db/pipeline/parsed_aggregation_projection.o build/opt/mongo/db/pipeline/parsed_exclusion_projection.o build/opt/mongo/db/pipeline/parsed_inclusion_projection.o build/opt/mongo/db/pipeline/parsed_add_fields.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libparsed_aggregation_projection.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatawriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationdatawriter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uresbund.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uresbund.cpp ar rcsTD build/opt/mongo/rpc/libcommand_request.a build/opt/mongo/rpc/command_request.o build/opt/mongo/rpc/command_request_builder.o Skipping ranlib for thin archive build/opt/mongo/rpc/libcommand_request.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uprops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uprops.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/repl_set_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/repl_set_metadata.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata.cpp In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/bson/mutable/element.h:37, from src/mongo/db/auth/privilege.h:35, from src/mongo/db/commands.h:41, from src/mongo/db/commands.cpp:35: 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:233:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 233 | return {dbname.toString(), uassertStatusOK(UUID::parse(first))}; | ~~~~~~~~~~~^~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/logical_time_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/rpc/metadata/logical_time_metadata.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/write_ops/batch_write_op.h:35, from src/mongo/s/write_ops/batch_write_op.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ShardError}; _Tp = mongo::ShardError; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::TrackedErrors::addError(mongo::ShardError)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::ShardEndpoint&, const mongo::WriteConcernErrorDetail&}; _Tp = mongo::ShardWCError; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::BatchWriteOp::noteBatchResponse(const mongo::TargetedWriteBatch&, const mongo::BatchedCommandResponse&, mongo::TrackedErrors*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/cursor_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/cursor_response.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/find_and_modify_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/find_and_modify_request.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/udat.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitlst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/digitlst.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currpinf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/currpinf.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regexst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/regexst.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/strrepl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/strrepl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationsettings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationsettings.cpp ar rcsTD build/opt/mongo/rpc/libmetadata.a build/opt/mongo/rpc/metadata.o build/opt/mongo/rpc/metadata/config_server_metadata.o build/opt/mongo/rpc/metadata/egress_metadata_hook_list.o build/opt/mongo/rpc/metadata/logical_time_metadata.o build/opt/mongo/rpc/metadata/sharding_metadata.o build/opt/mongo/rpc/metadata/repl_set_metadata.o build/opt/mongo/rpc/metadata/oplog_query_metadata.o build/opt/mongo/rpc/metadata/tracking_metadata.o Skipping ranlib for thin archive build/opt/mongo/rpc/libmetadata.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/datefmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/datefmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regexcmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/regexcmp.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rulebasedcollator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rulebasedcollator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/chnsecal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/chnsecal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gregocal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/gregocal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/buddhcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/buddhcal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/timezone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/timezone.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/quant.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/quant.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fmtable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/fmtable.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/quantityformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/quantityformatter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fphdlimp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/fphdlimp.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ethpccal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ethpccal.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/casetrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/casetrn.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/inputext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/inputext.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/funcrepl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/funcrepl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrsbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/csrsbcs.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/wintzimpl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/wintzimpl.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_rule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_rule.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/toupptrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/toupptrn.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rematch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rematch.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationkeys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationkeys.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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_data.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/vtzone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/vtzone.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/reldatefmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/reldatefmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/measfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/collationiterator.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/zrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/zrule.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfsubs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/nfsubs.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/visibledigits.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/visibledigits.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smallintformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/smallintformatter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uregion.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/gender.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/currfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/transreg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/transreg.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/selfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/selfmt.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/repattrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/repattrn.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/caniter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/caniter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_name.cpp Using tempfile /tmp/tmpX41hLD.lnk for command line: ar rcsTD build/opt/third_party/icu4c-57.1/source/libicu_i18n.a build/opt/third_party/icu4c-57.1/source/i18n/affixpatternparser.o build/opt/third_party/icu4c-57.1/source/i18n/alphaindex.o build/opt/third_party/icu4c-57.1/source/i18n/anytrans.o build/opt/third_party/icu4c-57.1/source/i18n/astro.o build/opt/third_party/icu4c-57.1/source/i18n/basictz.o build/opt/third_party/icu4c-57.1/source/i18n/bocsu.o build/opt/third_party/icu4c-57.1/source/i18n/brktrans.o build/opt/third_party/icu4c-57.1/source/i18n/buddhcal.o build/opt/third_party/icu4c-57.1/source/i18n/calendar.o build/opt/third_party/icu4c-57.1/source/i18n/casetrn.o build/opt/third_party/icu4c-57.1/source/i18n/cecal.o build/opt/third_party/icu4c-57.1/source/i18n/chnsecal.o build/opt/third_party/icu4c-57.1/source/i18n/choicfmt.o build/opt/third_party/icu4c-57.1/source/i18n/coleitr.o build/opt/third_party/icu4c-57.1/source/i18n/coll.o build/opt/third_party/icu4c-57.1/source/i18n/collation.o build/opt/third_party/icu4c-57.1/source/i18n/collationbuilder.o build/opt/third_party/icu4c-57.1/source/i18n/collationcompare.o build/opt/third_party/icu4c-57.1/source/i18n/collationdata.o build/opt/third_party/icu4c-57.1/source/i18n/collationdatabuilder.o build/opt/third_party/icu4c-57.1/source/i18n/collationdatareader.o build/opt/third_party/icu4c-57.1/source/i18n/collationdatawriter.o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatin.o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.o build/opt/third_party/icu4c-57.1/source/i18n/collationfcd.o build/opt/third_party/icu4c-57.1/source/i18n/collationiterator.o build/opt/third_party/icu4c-57.1/source/i18n/collationkeys.o build/opt/third_party/icu4c-57.1/source/i18n/collationroot.o build/opt/third_party/icu4c-57.1/source/i18n/collationrootelements.o build/opt/third_party/icu4c-57.1/source/i18n/collationruleparser.o build/opt/third_party/icu4c-57.1/source/i18n/collationsets.o build/opt/third_party/icu4c-57.1/source/i18n/collationsettings.o build/opt/third_party/icu4c-57.1/source/i18n/collationtailoring.o build/opt/third_party/icu4c-57.1/source/i18n/collationweights.o build/opt/third_party/icu4c-57.1/source/i18n/compactdecimalformat.o build/opt/third_party/icu4c-57.1/source/i18n/coptccal.o build/opt/third_party/icu4c-57.1/source/i18n/cpdtrans.o build/opt/third_party/icu4c-57.1/source/i18n/csdetect.o build/opt/third_party/icu4c-57.1/source/i18n/csmatch.o build/opt/third_party/icu4c-57.1/source/i18n/csr2022.o build/opt/third_party/icu4c-57.1/source/i18n/csrecog.o build/opt/third_party/icu4c-57.1/source/i18n/csrmbcs.o build/opt/third_party/icu4c-57.1/source/i18n/csrsbcs.o build/opt/third_party/icu4c-57.1/source/i18n/csrucode.o build/opt/third_party/icu4c-57.1/source/i18n/csrutf8.o build/opt/third_party/icu4c-57.1/source/i18n/curramt.o build/opt/third_party/icu4c-57.1/source/i18n/currfmt.o build/opt/third_party/icu4c-57.1/source/i18n/currpinf.o build/opt/third_party/icu4c-57.1/source/i18n/currunit.o build/opt/third_party/icu4c-57.1/source/i18n/dangical.o build/opt/third_party/icu4c-57.1/source/i18n/datefmt.o build/opt/third_party/icu4c-57.1/source/i18n/dayperiodrules.o build/opt/third_party/icu4c-57.1/source/i18n/dcfmtsym.o build/opt/third_party/icu4c-57.1/source/i18n/decContext.o build/opt/third_party/icu4c-57.1/source/i18n/decNumber.o build/opt/third_party/icu4c-57.1/source/i18n/decfmtst.o build/opt/third_party/icu4c-57.1/source/i18n/decimalformatpattern.o build/opt/third_party/icu4c-57.1/source/i18n/decimfmt.o build/opt/third_party/icu4c-57.1/source/i18n/decimfmtimpl.o build/opt/third_party/icu4c-57.1/source/i18n/digitaffix.o build/opt/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.o build/opt/third_party/icu4c-57.1/source/i18n/digitformatter.o build/opt/third_party/icu4c-57.1/source/i18n/digitgrouping.o build/opt/third_party/icu4c-57.1/source/i18n/digitinterval.o build/opt/third_party/icu4c-57.1/source/i18n/digitlst.o build/opt/third_party/icu4c-57.1/source/i18n/dtfmtsym.o build/opt/third_party/icu4c-57.1/source/i18n/dtitvfmt.o build/opt/third_party/icu4c-57.1/source/i18n/dtitvinf.o build/opt/third_party/icu4c-57.1/source/i18n/dtptngen.o build/opt/third_party/icu4c-57.1/source/i18n/dtrule.o build/opt/third_party/icu4c-57.1/source/i18n/esctrn.o build/opt/third_party/icu4c-57.1/source/i18n/ethpccal.o build/opt/third_party/icu4c-57.1/source/i18n/fmtable.o build/opt/third_party/icu4c-57.1/source/i18n/fmtable_cnv.o build/opt/third_party/icu4c-57.1/source/i18n/format.o build/opt/third_party/icu4c-57.1/source/i18n/fphdlimp.o build/opt/third_party/icu4c-57.1/source/i18n/fpositer.o build/opt/third_party/icu4c-57.1/source/i18n/funcrepl.o build/opt/third_party/icu4c-57.1/source/i18n/gender.o build/opt/third_party/icu4c-57.1/source/i18n/gregocal.o build/opt/third_party/icu4c-57.1/source/i18n/gregoimp.o build/opt/third_party/icu4c-57.1/source/i18n/hebrwcal.o build/opt/third_party/icu4c-57.1/source/i18n/identifier_info.o build/opt/third_party/icu4c-57.1/source/i18n/indiancal.o build/opt/third_party/icu4c-57.1/source/i18n/inputext.o build/opt/third_party/icu4c-57.1/source/i18n/islamcal.o build/opt/third_party/icu4c-57.1/source/i18n/japancal.o build/opt/third_party/icu4c-57.1/source/i18n/measfmt.o build/opt/third_party/icu4c-57.1/source/i18n/measunit.o build/opt/third_party/icu4c-57.1/source/i18n/measure.o build/opt/third_party/icu4c-57.1/source/i18n/msgfmt.o build/opt/third_party/icu4c-57.1/source/i18n/name2uni.o build/opt/third_party/icu4c-57.1/source/i18n/nfrs.o build/opt/third_party/icu4c-57.1/source/i18n/nfrule.o build/opt/third_party/icu4c-57.1/source/i18n/nfsubs.o build/opt/third_party/icu4c-57.1/source/i18n/nortrans.o build/opt/third_party/icu4c-57.1/source/i18n/nultrans.o build/opt/third_party/icu4c-57.1/source/i18n/numfmt.o build/opt/third_party/icu4c-57.1/source/i18n/numsys.o build/opt/third_party/icu4c-57.1/source/i18n/olsontz.o build/opt/third_party/icu4c-57.1/source/i18n/persncal.o build/opt/third_party/icu4c-57.1/source/i18n/pluralaffix.o build/opt/third_party/icu4c-57.1/source/i18n/plurfmt.o build/opt/third_party/icu4c-57.1/source/i18n/plurrule.o build/opt/third_party/icu4c-57.1/source/i18n/precision.o build/opt/third_party/icu4c-57.1/source/i18n/quant.o build/opt/third_party/icu4c-57.1/source/i18n/quantityformatter.o build/opt/third_party/icu4c-57.1/source/i18n/rbnf.o build/opt/third_party/icu4c-57.1/source/i18n/rbt.o build/opt/third_party/icu4c-57.1/source/i18n/rbt_data.o build/opt/third_party/icu4c-57.1/source/i18n/rbt_pars.o build/opt/third_party/icu4c-57.1/source/i18n/rbt_rule.o build/opt/third_party/icu4c-57.1/source/i18n/rbt_set.o build/opt/third_party/icu4c-57.1/source/i18n/rbtz.o build/opt/third_party/icu4c-57.1/source/i18n/regexcmp.o build/opt/third_party/icu4c-57.1/source/i18n/regeximp.o build/opt/third_party/icu4c-57.1/source/i18n/regexst.o build/opt/third_party/icu4c-57.1/source/i18n/regextxt.o build/opt/third_party/icu4c-57.1/source/i18n/region.o build/opt/third_party/icu4c-57.1/source/i18n/reldatefmt.o build/opt/third_party/icu4c-57.1/source/i18n/reldtfmt.o build/opt/third_party/icu4c-57.1/source/i18n/rematch.o build/opt/third_party/icu4c-57.1/source/i18n/remtrans.o build/opt/third_party/icu4c-57.1/source/i18n/repattrn.o build/opt/third_party/icu4c-57.1/source/i18n/rulebasedcollator.o build/opt/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.o build/opt/third_party/icu4c-57.1/source/i18n/scriptset.o build/opt/third_party/icu4c-57.1/source/i18n/search.o build/opt/third_party/icu4c-57.1/source/i18n/selfmt.o build/opt/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.o build/opt/third_party/icu4c-57.1/source/i18n/simpletz.o build/opt/third_party/icu4c-57.1/source/i18n/smallintformatter.o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfmt.o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfst.o build/opt/third_party/icu4c-57.1/source/i18n/sortkey.o build/opt/third_party/icu4c-57.1/source/i18n/standardplural.o build/opt/third_party/icu4c-57.1/source/i18n/strmatch.o build/opt/third_party/icu4c-57.1/source/i18n/strrepl.o build/opt/third_party/icu4c-57.1/source/i18n/stsearch.o build/opt/third_party/icu4c-57.1/source/i18n/taiwncal.o build/opt/third_party/icu4c-57.1/source/i18n/timezone.o build/opt/third_party/icu4c-57.1/source/i18n/titletrn.o build/opt/third_party/icu4c-57.1/source/i18n/tmunit.o build/opt/third_party/icu4c-57.1/source/i18n/tmutamt.o build/opt/third_party/icu4c-57.1/source/i18n/tmutfmt.o build/opt/third_party/icu4c-57.1/source/i18n/tolowtrn.o build/opt/third_party/icu4c-57.1/source/i18n/toupptrn.o build/opt/third_party/icu4c-57.1/source/i18n/translit.o build/opt/third_party/icu4c-57.1/source/i18n/transreg.o build/opt/third_party/icu4c-57.1/source/i18n/tridpars.o build/opt/third_party/icu4c-57.1/source/i18n/tzfmt.o build/opt/third_party/icu4c-57.1/source/i18n/tzgnames.o build/opt/third_party/icu4c-57.1/source/i18n/tznames.o build/opt/third_party/icu4c-57.1/source/i18n/tznames_impl.o build/opt/third_party/icu4c-57.1/source/i18n/tzrule.o build/opt/third_party/icu4c-57.1/source/i18n/tztrans.o build/opt/third_party/icu4c-57.1/source/i18n/ucal.o build/opt/third_party/icu4c-57.1/source/i18n/ucln_in.o build/opt/third_party/icu4c-57.1/source/i18n/ucol.o build/opt/third_party/icu4c-57.1/source/i18n/ucol_res.o build/opt/third_party/icu4c-57.1/source/i18n/ucol_sit.o build/opt/third_party/icu4c-57.1/source/i18n/ucoleitr.o build/opt/third_party/icu4c-57.1/source/i18n/ucsdet.o build/opt/third_party/icu4c-57.1/source/i18n/udat.o build/opt/third_party/icu4c-57.1/source/i18n/udateintervalformat.o build/opt/third_party/icu4c-57.1/source/i18n/udatpg.o build/opt/third_party/icu4c-57.1/source/i18n/ufieldpositer.o build/opt/third_party/icu4c-57.1/source/i18n/uitercollationiterator.o build/opt/third_party/icu4c-57.1/source/i18n/ulocdata.o build/opt/third_party/icu4c-57.1/source/i18n/umsg.o build/opt/third_party/icu4c-57.1/source/i18n/unesctrn.o build/opt/third_party/icu4c-57.1/source/i18n/uni2name.o build/opt/third_party/icu4c-57.1/source/i18n/unum.o build/opt/third_party/icu4c-57.1/source/i18n/unumsys.o build/opt/third_party/icu4c-57.1/source/i18n/upluralrules.o build/opt/third_party/icu4c-57.1/source/i18n/uregex.o build/opt/third_party/icu4c-57.1/source/i18n/uregexc.o build/opt/third_party/icu4c-57.1/source/i18n/uregion.o build/opt/third_party/icu4c-57.1/source/i18n/usearch.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_build.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_conf.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_impl.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.o build/opt/third_party/icu4c-57.1/source/i18n/utf16collationiterator.o build/opt/third_party/icu4c-57.1/source/i18n/utf8collationiterator.o build/opt/third_party/icu4c-57.1/source/i18n/utmscale.o build/opt/third_party/icu4c-57.1/source/i18n/utrans.o build/opt/third_party/icu4c-57.1/source/i18n/valueformatter.o build/opt/third_party/icu4c-57.1/source/i18n/visibledigits.o build/opt/third_party/icu4c-57.1/source/i18n/vtzone.o build/opt/third_party/icu4c-57.1/source/i18n/vzone.o build/opt/third_party/icu4c-57.1/source/i18n/windtfmt.o build/opt/third_party/icu4c-57.1/source/i18n/winnmfmt.o build/opt/third_party/icu4c-57.1/source/i18n/wintzimpl.o build/opt/third_party/icu4c-57.1/source/i18n/zonemeta.o build/opt/third_party/icu4c-57.1/source/i18n/zrule.o build/opt/third_party/icu4c-57.1/source/i18n/ztrans.o ar @/tmp/tmpX41hLD.lnk /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libuser_name.a build/opt/mongo/db/auth/user_name.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libuser_name.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestrieiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/bytestrieiterator.cpp Skipping ranlib for thin archive build/opt/third_party/icu4c-57.1/source/libicu_i18n.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/wintz.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 -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 -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/wintz.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/system_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/system_index.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_last.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_last.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_last.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_last.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/storage/kv/libkv_engine.a build/opt/mongo/db/storage/kv/kv_database_catalog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_engine.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/config_server_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/config_server_client.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u16.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 -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 -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_u16.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.c ar rcsTD build/opt/mongo/db/libmongod_options.a build/opt/mongo/db/mongod_options.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/count_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/count_request.cpp Skipping ranlib for thin archive build/opt/mongo/db/libmongod_options.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/cursor_request.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/killcursors_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/killcursors_response.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/view_response_formatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/view_response_formatter.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/query/count_request.cpp: In static member function 'static mongo::StatusWith mongo::CountRequest::parseFromBSON(const mongo::NamespaceString&, const mongo::BSONObj&, bool)': src/mongo/db/query/count_request.cpp:99:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 99 | auto maxTimeMS = QueryRequest::parseMaxTimeMS(cmdObj[kMaxTimeMSField]); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unistr_cnv.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_recovery.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsystem_index.a build/opt/mongo/db/system_index.o Skipping ranlib for thin archive build/opt/mongo/db/libsystem_index.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/explain_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/explain_options.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/query/killcursors_response.h:33, from src/mongo/db/query/killcursors_response.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::Status mongo::{anonymous}::fillOutCursorArray(const mongo::BSONObj&, mongo::StringData, std::vector*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.c /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_std_dev.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_std_dev.cpp ar rcsTD build/opt/mongo/db/query/libcommand_request_response.a build/opt/mongo/db/query/count_request.o build/opt/mongo/db/query/cursor_request.o build/opt/mongo/db/query/cursor_response.o build/opt/mongo/db/query/find_and_modify_request.o build/opt/mongo/db/query/getmore_request.o build/opt/mongo/db/query/killcursors_request.o build/opt/mongo/db/query/killcursors_response.o build/opt/mongo/db/query/view_response_formatter.o Skipping ranlib for thin archive build/opt/mongo/db/query/libcommand_request_response.a ar rcsTD build/opt/mongo/executor/libconnection_pool_executor.a build/opt/mongo/executor/connection_pool.o Skipping ranlib for thin archive build/opt/mongo/executor/libconnection_pool_executor.a ar rcsTD build/opt/mongo/db/libttl_d.a build/opt/mongo/db/ttl.o Skipping ranlib for thin archive build/opt/mongo/db/libttl_d.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/address_restriction_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/auth/address_restriction_gen.cpp ar rcsTD build/opt/mongo/db/libkeys_collection_document.a build/opt/mongo/db/keys_collection_document.o Skipping ranlib for thin archive build/opt/mongo/db/libkeys_collection_document.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/serv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/serv.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_std_dev.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_std_dev.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unames.cpp ar rcsTD build/opt/mongo/db/repl/libroll_back_local_operations.a build/opt/mongo/db/repl/roll_back_local_operations.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libroll_back_local_operations.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/bytestriebuilder.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libprocessinfo.a build/opt/mongo/util/processinfo.o build/opt/mongo/util/processinfo_linux.o 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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/util/libprocessinfo.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucln_cmn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucln_cmn.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvhz.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 -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 -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/ucnvhz.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_std_dev.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/util.cpp In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_std_dev.cpp:33: 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uenum.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 -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 -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/uenum.c ar rcsTD build/opt/mongo/db/libkill_sessions_local.a build/opt/mongo/db/kill_sessions_local.o Skipping ranlib for thin archive build/opt/mongo/db/libkill_sessions_local.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/bson/dotted_path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/bson/dotted_path_support.cpp ar rcsTD build/opt/mongo/db/libservice_liaison_mongod.a build/opt/mongo/db/service_liaison_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_liaison_mongod.a ar rcsTD build/opt/mongo/crypto/libsha256_block.a build/opt/mongo/crypto/sha256_block.o Skipping ranlib for thin archive build/opt/mongo/crypto/libsha256_block.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/durable_view_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/durable_view_catalog.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libaddress_restriction.a build/opt/mongo/db/auth/address_restriction.o build/opt/mongo/db/auth/address_restriction_gen.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libaddress_restriction.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.c ar rcsTD build/opt/mongo/db/bson/libdotted_path_support.a build/opt/mongo/db/bson/dotted_path_support.o Skipping ranlib for thin archive build/opt/mongo/db/bson/libdotted_path_support.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/2d_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/2d_access_method.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/hash_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/hash_access_method.cpp ar rcsTD build/opt/mongo/db/s/libtype_shard_identity.a build/opt/mongo/db/s/add_shard_cmd_gen.o build/opt/mongo/db/s/type_shard_identity.o Skipping ranlib for thin archive build/opt/mongo/db/s/libtype_shard_identity.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.c ar rcsTD build/opt/mongo/transport/libmessage_compressor.a build/opt/mongo/transport/message_compressor_manager.o build/opt/mongo/transport/message_compressor_metrics.o build/opt/mongo/transport/message_compressor_registry.o build/opt/mongo/transport/message_compressor_snappy.o build/opt/mongo/transport/message_compressor_zlib.o Skipping ranlib for thin archive build/opt/mongo/transport/libmessage_compressor.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.c 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/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/pluralmap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/pluralmap.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucurr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucurr.cpp /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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/naourr/work/instance-2/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 -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 -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 ar rcsTD build/opt/mongo/db/index/libindex_access_methods.a build/opt/mongo/db/index/2d_access_method.o build/opt/mongo/db/index/btree_access_method.o build/opt/mongo/db/index/fts_access_method.o build/opt/mongo/db/index/hash_access_method.o build/opt/mongo/db/index/haystack_access_method.o build/opt/mongo/db/index/s2_access_method.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uloc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uloc.cpp Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_access_methods.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u7.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 -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 -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_u7.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unistr_props.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbistbl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/rbbistbl.cpp /home/naourr/work/instance-2/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 -std=c++14 -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 -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 -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 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_cb.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 -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 -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_cb.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/udatamem.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 -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 -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/udatamem.c In file included from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/string.h:495, from src/third_party/icu4c-57.1/source/common/cmemory.h:30, from src/third_party/icu4c-57.1/source/common/cstring.h:29, from src/third_party/icu4c-57.1/source/common/uloc.cpp:39: In function 'char* strncpy(char*, const char*, size_t)', inlined from 'int32_t _canonicalize(const char*, char*, int32_t, uint32_t, UErrorCode*)' at src/third_party/icu4c-57.1/source/common/uloc.cpp:1679:13: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, unsigned int)' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/icu4c-57.1/source/common/uloc.cpp:39: src/third_party/icu4c-57.1/source/common/uloc.cpp: In function 'int32_t _canonicalize(const char*, char*, int32_t, uint32_t, UErrorCode*)': src/third_party/icu4c-57.1/source/common/cstring.h:35:57: note: length computed here 35 | #define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str) src/third_party/icu4c-57.1/source/common/uloc.cpp:1676:24: note: in expansion of macro 'uprv_strlen' 1676 | len = (int32_t)uprv_strlen(d); | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/locutil.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_case_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/unistr_case_locale.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uscript_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uscript_props.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/chariter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/chariter.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/propname.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/propname.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/punycode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/punycode.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uvector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uvector.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uloc_keytype.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/uloc_keytype.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uloc_tag.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 -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 -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/uloc_tag.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ustack.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uhash.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 -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 -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/uhash.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvbocu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -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 -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 -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/ucnvbocu.cpp 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 ar rcsTD build/opt/mongo/s/catalog/libreplset_dist_lock_manager.a build/opt/mongo/s/catalog/replset_dist_lock_manager.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libreplset_dist_lock_manager.a ar rcsTD build/opt/mongo/db/repl/libsync_source_resolver.a build/opt/mongo/db/repl/sync_source_resolver.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libsync_source_resolver.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_extensions.cpp ar rcsTD build/opt/third_party/libshim_icu.a build/opt/third_party/shim_icu.o Skipping ranlib for thin archive build/opt/third_party/libshim_icu.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/internal_user_auth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/internal_user_auth.cpp Using tempfile /tmp/tmpAAydL6.lnk for command line: ar rcsTD build/opt/third_party/icu4c-57.1/source/libicu_common.a build/opt/third_party/icu4c-57.1/source/common/appendable.o build/opt/third_party/icu4c-57.1/source/common/bmpset.o build/opt/third_party/icu4c-57.1/source/common/brkeng.o build/opt/third_party/icu4c-57.1/source/common/brkiter.o build/opt/third_party/icu4c-57.1/source/common/bytestream.o build/opt/third_party/icu4c-57.1/source/common/bytestrie.o build/opt/third_party/icu4c-57.1/source/common/bytestriebuilder.o build/opt/third_party/icu4c-57.1/source/common/bytestrieiterator.o build/opt/third_party/icu4c-57.1/source/common/caniter.o build/opt/third_party/icu4c-57.1/source/common/chariter.o build/opt/third_party/icu4c-57.1/source/common/charstr.o build/opt/third_party/icu4c-57.1/source/common/cmemory.o build/opt/third_party/icu4c-57.1/source/common/cstr.o build/opt/third_party/icu4c-57.1/source/common/cstring.o build/opt/third_party/icu4c-57.1/source/common/cwchar.o build/opt/third_party/icu4c-57.1/source/common/dictbe.o build/opt/third_party/icu4c-57.1/source/common/dictionarydata.o build/opt/third_party/icu4c-57.1/source/common/dtintrv.o build/opt/third_party/icu4c-57.1/source/common/errorcode.o build/opt/third_party/icu4c-57.1/source/common/filteredbrk.o build/opt/third_party/icu4c-57.1/source/common/filterednormalizer2.o build/opt/third_party/icu4c-57.1/source/common/icudataver.o build/opt/third_party/icu4c-57.1/source/common/icuplug.o build/opt/third_party/icu4c-57.1/source/common/listformatter.o build/opt/third_party/icu4c-57.1/source/common/loadednormalizer2impl.o build/opt/third_party/icu4c-57.1/source/common/locavailable.o build/opt/third_party/icu4c-57.1/source/common/locbased.o build/opt/third_party/icu4c-57.1/source/common/locdispnames.o build/opt/third_party/icu4c-57.1/source/common/locdspnm.o build/opt/third_party/icu4c-57.1/source/common/locid.o build/opt/third_party/icu4c-57.1/source/common/loclikely.o build/opt/third_party/icu4c-57.1/source/common/locmap.o build/opt/third_party/icu4c-57.1/source/common/locresdata.o build/opt/third_party/icu4c-57.1/source/common/locutil.o build/opt/third_party/icu4c-57.1/source/common/messagepattern.o build/opt/third_party/icu4c-57.1/source/common/normalizer2.o build/opt/third_party/icu4c-57.1/source/common/normalizer2impl.o build/opt/third_party/icu4c-57.1/source/common/normlzr.o build/opt/third_party/icu4c-57.1/source/common/parsepos.o build/opt/third_party/icu4c-57.1/source/common/patternprops.o build/opt/third_party/icu4c-57.1/source/common/pluralmap.o build/opt/third_party/icu4c-57.1/source/common/propname.o build/opt/third_party/icu4c-57.1/source/common/propsvec.o build/opt/third_party/icu4c-57.1/source/common/punycode.o build/opt/third_party/icu4c-57.1/source/common/putil.o build/opt/third_party/icu4c-57.1/source/common/rbbi.o build/opt/third_party/icu4c-57.1/source/common/rbbidata.o build/opt/third_party/icu4c-57.1/source/common/rbbinode.o build/opt/third_party/icu4c-57.1/source/common/rbbirb.o build/opt/third_party/icu4c-57.1/source/common/rbbiscan.o build/opt/third_party/icu4c-57.1/source/common/rbbisetb.o build/opt/third_party/icu4c-57.1/source/common/rbbistbl.o build/opt/third_party/icu4c-57.1/source/common/rbbitblb.o build/opt/third_party/icu4c-57.1/source/common/resbund.o build/opt/third_party/icu4c-57.1/source/common/resbund_cnv.o build/opt/third_party/icu4c-57.1/source/common/resource.o build/opt/third_party/icu4c-57.1/source/common/ruleiter.o build/opt/third_party/icu4c-57.1/source/common/schriter.o build/opt/third_party/icu4c-57.1/source/common/serv.o build/opt/third_party/icu4c-57.1/source/common/servlk.o build/opt/third_party/icu4c-57.1/source/common/servlkf.o build/opt/third_party/icu4c-57.1/source/common/servls.o build/opt/third_party/icu4c-57.1/source/common/servnotf.o build/opt/third_party/icu4c-57.1/source/common/servrbf.o build/opt/third_party/icu4c-57.1/source/common/servslkf.o build/opt/third_party/icu4c-57.1/source/common/sharedobject.o build/opt/third_party/icu4c-57.1/source/common/simpleformatter.o build/opt/third_party/icu4c-57.1/source/common/stringpiece.o build/opt/third_party/icu4c-57.1/source/common/stringtriebuilder.o build/opt/third_party/icu4c-57.1/source/common/uarrsort.o build/opt/third_party/icu4c-57.1/source/common/ubidi.o build/opt/third_party/icu4c-57.1/source/common/ubidi_props.o build/opt/third_party/icu4c-57.1/source/common/ubidiln.o build/opt/third_party/icu4c-57.1/source/common/ubidiwrt.o build/opt/third_party/icu4c-57.1/source/common/ubrk.o build/opt/third_party/icu4c-57.1/source/common/ucase.o build/opt/third_party/icu4c-57.1/source/common/ucasemap.o build/opt/third_party/icu4c-57.1/source/common/ucasemap_titlecase_brkiter.o build/opt/third_party/icu4c-57.1/source/common/ucat.o build/opt/third_party/icu4c-57.1/source/common/uchar.o build/opt/third_party/icu4c-57.1/source/common/ucharstrie.o build/opt/third_party/icu4c-57.1/source/common/ucharstriebuilder.o build/opt/third_party/icu4c-57.1/source/common/ucharstrieiterator.o build/opt/third_party/icu4c-57.1/source/common/uchriter.o build/opt/third_party/icu4c-57.1/source/common/ucln_cmn.o build/opt/third_party/icu4c-57.1/source/common/ucmndata.o build/opt/third_party/icu4c-57.1/source/common/ucnv.o build/opt/third_party/icu4c-57.1/source/common/ucnv2022.o build/opt/third_party/icu4c-57.1/source/common/ucnv_bld.o build/opt/third_party/icu4c-57.1/source/common/ucnv_cb.o build/opt/third_party/icu4c-57.1/source/common/ucnv_cnv.o build/opt/third_party/icu4c-57.1/source/common/ucnv_ct.o build/opt/third_party/icu4c-57.1/source/common/ucnv_err.o build/opt/third_party/icu4c-57.1/source/common/ucnv_ext.o build/opt/third_party/icu4c-57.1/source/common/ucnv_io.o build/opt/third_party/icu4c-57.1/source/common/ucnv_lmb.o build/opt/third_party/icu4c-57.1/source/common/ucnv_set.o build/opt/third_party/icu4c-57.1/source/common/ucnv_u16.o build/opt/third_party/icu4c-57.1/source/common/ucnv_u32.o build/opt/third_party/icu4c-57.1/source/common/ucnv_u7.o build/opt/third_party/icu4c-57.1/source/common/ucnv_u8.o build/opt/third_party/icu4c-57.1/source/common/ucnvbocu.o build/opt/third_party/icu4c-57.1/source/common/ucnvdisp.o build/opt/third_party/icu4c-57.1/source/common/ucnvhz.o build/opt/third_party/icu4c-57.1/source/common/ucnvisci.o build/opt/third_party/icu4c-57.1/source/common/ucnvlat1.o build/opt/third_party/icu4c-57.1/source/common/ucnvmbcs.o build/opt/third_party/icu4c-57.1/source/common/ucnvscsu.o build/opt/third_party/icu4c-57.1/source/common/ucnvsel.o build/opt/third_party/icu4c-57.1/source/common/ucol_swp.o build/opt/third_party/icu4c-57.1/source/common/ucurr.o build/opt/third_party/icu4c-57.1/source/common/udata.o build/opt/third_party/icu4c-57.1/source/common/udatamem.o build/opt/third_party/icu4c-57.1/source/common/udataswp.o build/opt/third_party/icu4c-57.1/source/common/uenum.o build/opt/third_party/icu4c-57.1/source/common/uhash.o build/opt/third_party/icu4c-57.1/source/common/uhash_us.o build/opt/third_party/icu4c-57.1/source/common/uidna.o build/opt/third_party/icu4c-57.1/source/common/uinit.o build/opt/third_party/icu4c-57.1/source/common/uinvchar.o build/opt/third_party/icu4c-57.1/source/common/uiter.o build/opt/third_party/icu4c-57.1/source/common/ulist.o build/opt/third_party/icu4c-57.1/source/common/ulistformatter.o build/opt/third_party/icu4c-57.1/source/common/uloc.o build/opt/third_party/icu4c-57.1/source/common/uloc_keytype.o build/opt/third_party/icu4c-57.1/source/common/uloc_tag.o build/opt/third_party/icu4c-57.1/source/common/umapfile.o build/opt/third_party/icu4c-57.1/source/common/umath.o build/opt/third_party/icu4c-57.1/source/common/umutex.o build/opt/third_party/icu4c-57.1/source/common/unames.o build/opt/third_party/icu4c-57.1/source/common/unifiedcache.o build/opt/third_party/icu4c-57.1/source/common/unifilt.o build/opt/third_party/icu4c-57.1/source/common/unifunct.o build/opt/third_party/icu4c-57.1/source/common/uniset.o build/opt/third_party/icu4c-57.1/source/common/uniset_closure.o build/opt/third_party/icu4c-57.1/source/common/uniset_props.o build/opt/third_party/icu4c-57.1/source/common/unisetspan.o build/opt/third_party/icu4c-57.1/source/common/unistr.o build/opt/third_party/icu4c-57.1/source/common/unistr_case.o build/opt/third_party/icu4c-57.1/source/common/unistr_case_locale.o build/opt/third_party/icu4c-57.1/source/common/unistr_cnv.o build/opt/third_party/icu4c-57.1/source/common/unistr_props.o build/opt/third_party/icu4c-57.1/source/common/unistr_titlecase_brkiter.o build/opt/third_party/icu4c-57.1/source/common/unorm.o build/opt/third_party/icu4c-57.1/source/common/unormcmp.o build/opt/third_party/icu4c-57.1/source/common/uobject.o build/opt/third_party/icu4c-57.1/source/common/uprops.o build/opt/third_party/icu4c-57.1/source/common/ures_cnv.o build/opt/third_party/icu4c-57.1/source/common/uresbund.o build/opt/third_party/icu4c-57.1/source/common/uresdata.o build/opt/third_party/icu4c-57.1/source/common/usc_impl.o build/opt/third_party/icu4c-57.1/source/common/uscript.o build/opt/third_party/icu4c-57.1/source/common/uscript_props.o build/opt/third_party/icu4c-57.1/source/common/uset.o build/opt/third_party/icu4c-57.1/source/common/uset_props.o build/opt/third_party/icu4c-57.1/source/common/usetiter.o build/opt/third_party/icu4c-57.1/source/common/ushape.o build/opt/third_party/icu4c-57.1/source/common/usprep.o build/opt/third_party/icu4c-57.1/source/common/ustack.o build/opt/third_party/icu4c-57.1/source/common/ustr_cnv.o build/opt/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.o build/opt/third_party/icu4c-57.1/source/common/ustr_wcs.o build/opt/third_party/icu4c-57.1/source/common/ustrcase.o build/opt/third_party/icu4c-57.1/source/common/ustrcase_locale.o build/opt/third_party/icu4c-57.1/source/common/ustrenum.o build/opt/third_party/icu4c-57.1/source/common/ustrfmt.o build/opt/third_party/icu4c-57.1/source/common/ustring.o build/opt/third_party/icu4c-57.1/source/common/ustrtrns.o build/opt/third_party/icu4c-57.1/source/common/utext.o build/opt/third_party/icu4c-57.1/source/common/utf_impl.o build/opt/third_party/icu4c-57.1/source/common/util.o build/opt/third_party/icu4c-57.1/source/common/util_props.o build/opt/third_party/icu4c-57.1/source/common/utrace.o build/opt/third_party/icu4c-57.1/source/common/utrie.o build/opt/third_party/icu4c-57.1/source/common/utrie2.o build/opt/third_party/icu4c-57.1/source/common/utrie2_builder.o build/opt/third_party/icu4c-57.1/source/common/uts46.o build/opt/third_party/icu4c-57.1/source/common/utypes.o build/opt/third_party/icu4c-57.1/source/common/uvector.o build/opt/third_party/icu4c-57.1/source/common/uvectr32.o build/opt/third_party/icu4c-57.1/source/common/uvectr64.o build/opt/third_party/icu4c-57.1/source/common/wintz.o ar @/tmp/tmpAAydL6.lnk ar rcsTD build/opt/mongo/db/auth/libinternal_user_auth.a build/opt/mongo/db/auth/internal_user_auth.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libinternal_user_auth.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.c ar rcsTD build/opt/mongo/util/libsignal_handlers.a build/opt/mongo/util/signal_handlers.o build/opt/mongo/util/signal_win32.o Skipping ranlib for thin archive build/opt/mongo/util/libsignal_handlers.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_commands.cpp ar rcsTD build/opt/mongo/db/views/libviews_mongod.a build/opt/mongo/db/views/durable_view_catalog.o Skipping ranlib for thin archive build/opt/mongo/db/views/libviews_mongod.a ar rcsTD build/opt/mongo/db/auth/libauth_rolename.a build/opt/mongo/db/auth/role_name.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_rolename.a ar rcsTD build/opt/mongo/db/repl/libstorage_interface.a build/opt/mongo/db/repl/storage_interface.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libstorage_interface.a ar rcsTD build/opt/third_party/libshim_intel_decimal128.a build/opt/third_party/shim_intel_decimal128.o Skipping ranlib for thin archive build/opt/third_party/icu4c-57.1/source/libicu_common.a Skipping ranlib for thin archive build/opt/third_party/libshim_intel_decimal128.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.c ar rcsTD build/opt/mongo/executor/libremote_command.a build/opt/mongo/executor/remote_command_request.o build/opt/mongo/executor/remote_command_response.o Skipping ranlib for thin archive build/opt/mongo/executor/libremote_command.a ar rcsTD build/opt/mongo/db/s/libsharding_api_d.a build/opt/mongo/db/s/collection_metadata.o build/opt/mongo/db/s/collection_sharding_state.o build/opt/mongo/db/s/database_sharding_state.o build/opt/mongo/db/s/operation_sharding_state.o build/opt/mongo/db/s/sharded_connection_info.o build/opt/mongo/db/s/sharding_migration_critical_section.o build/opt/mongo/db/s/sharding_state.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.c Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_api_d.a ar rcsTD build/opt/mongo/db/libsessions_collection_config_server.a build/opt/mongo/db/sessions_collection_config_server.o ar rcsTD build/opt/mongo/db/libtransaction_reaper.a build/opt/mongo/db/transaction_reaper.o ar rcsTD build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a build/opt/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_extensions.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_config_server.a 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/libtransaction_reaper.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/test_commands_enabled.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/test_commands_enabled.cpp Skipping ranlib for thin archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a Skipping ranlib for thin archive build/opt/mongo/db/matcher/libpath.a ar rcsTD build/opt/mongo/db/storage/devnull/libstorage_devnull_core.a build/opt/mongo/db/storage/devnull/devnull_kv_engine.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/safe_num.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/safe_num.cpp Skipping ranlib for thin archive build/opt/mongo/db/storage/devnull/libstorage_devnull_core.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 src/third_party/shim_allocator.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/libextent.a build/opt/mongo/db/storage/mmap_v1/extent.o build/opt/mongo/db/storage/mmap_v1/extent_manager.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libextent.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/delete.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/health_log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/health_log.cpp ar rcsTD build/opt/mongo/util/libsafe_num.a build/opt/mongo/util/safe_num.o Skipping ranlib for thin archive build/opt/mongo/util/libsafe_num.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.c ar rcsTD build/opt/mongo/db/repl/liboplogreader.a build/opt/mongo/db/repl/oplogreader.o In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplogreader.a ar rcsTD build/opt/mongo/db/storage/devnull/libstorage_devnull.a build/opt/mongo/db/storage/devnull/devnull_init.o In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/storage/devnull/libstorage_devnull.a 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.c 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libstartup_warnings_mongod.a build/opt/mongo/db/startup_warnings_mongod.o In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/libstartup_warnings_mongod.a 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.c ar rcsTD build/opt/mongo/db/repl/liboplog.a build/opt/mongo/db/repl/apply_ops.o build/opt/mongo/db/repl/do_txn.o build/opt/mongo/db/repl/oplog.o build/opt/mongo/db/repl/apply_ops_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog.a ar rcsTD build/opt/mongo/executor/libthread_pool_task_executor.a build/opt/mongo/executor/thread_pool_task_executor.o Skipping ranlib for thin archive build/opt/mongo/executor/libthread_pool_task_executor.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.c In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/auth/sasl_commands.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::doSaslStart(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder*, std::string*)': src/mongo/db/auth/sasl_commands.cpp:251:21: warning: redundant move in return statement [-Wredundant-move] 251 | return std::move(session); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/auth/sasl_commands.cpp:251:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libaudit.a build/opt/mongo/db/audit.o In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, 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:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/libaudit.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/kill_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/kill_sessions.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/expression_context.cpp /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/variables.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/variables.h:33, from src/mongo/db/pipeline/variables.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/variables.h:33, from src/mongo/db/pipeline/variables.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/expression_context.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/expression_context.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.c ar rcsTD build/opt/mongo/bson/mutable/libmutable_bson.a build/opt/mongo/bson/mutable/document.o build/opt/mongo/bson/mutable/element.o Skipping ranlib for thin archive build/opt/mongo/bson/mutable/libmutable_bson.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/collection_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/collection_cloner.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/stub_mongo_process_interface.h:34, from src/mongo/db/pipeline/expression_context.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/stub_mongo_process_interface.h:34, from src/mongo/db/pipeline/expression_context.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libkeys_collection_manager.a build/opt/mongo/db/keys_collection_manager.o build/opt/mongo/db/keys_collection_cache.o build/opt/mongo/db/key_generator.o Skipping ranlib for thin archive build/opt/mongo/db/libkeys_collection_manager.a ar rcsTD build/opt/mongo/executor/libnetwork_interface_tl.a build/opt/mongo/executor/connection_pool_tl.o build/opt/mongo/executor/network_interface_tl.o Skipping ranlib for thin archive build/opt/mongo/executor/libnetwork_interface_tl.a ar rcsTD build/opt/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.o Skipping ranlib for thin archive build/opt/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/find_and_modify_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/find_and_modify_result.cpp ar rcsTD build/opt/mongo/db/catalog/libhealth_log.a build/opt/mongo/db/catalog/health_log.o build/opt/mongo/db/catalog/health_log_gen.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libhealth_log.a ar rcsTD build/opt/mongo/db/libservice_liaison_mongos.a build/opt/mongo/db/service_liaison_mongos.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_liaison_mongos.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/ticketholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/concurrency/ticketholder.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/stub_mongo_process_interface.h:34, from src/mongo/db/pipeline/expression_context.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libsecure_compare_memory.a build/opt/mongo/util/secure_compare_memory.o Skipping ranlib for thin archive build/opt/mongo/util/libsecure_compare_memory.a ar rcsTD build/opt/mongo/db/repl/liboplog_entry.a build/opt/mongo/db/repl/oplog_entry.o build/opt/mongo/db/repl/oplog_entry_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_entry.a ar rcsTD build/opt/mongo/db/libwrite_ops.a build/opt/mongo/db/ops/delete.o build/opt/mongo/db/ops/find_and_modify_result.o build/opt/mongo/db/ops/insert.o build/opt/mongo/db/ops/update.o build/opt/mongo/db/ops/write_ops_retryability.o build/opt/mongo/db/ops/single_write_result_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libwrite_ops.a ar rcsTD build/opt/mongo/util/libbackground_job.a build/opt/mongo/util/background.o Skipping ranlib for thin archive build/opt/mongo/util/libbackground_job.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_session_external_state_server_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state_server_common.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.c ar rcsTD build/opt/mongo/bson/util/libbson_extract.a build/opt/mongo/bson/util/bson_extract.o Skipping ranlib for thin archive build/opt/mongo/bson/util/libbson_extract.a ar rcsTD build/opt/mongo/s/client/librs_local_client.a build/opt/mongo/s/client/rs_local_client.o Skipping ranlib for thin archive build/opt/mongo/s/client/librs_local_client.a ar rcsTD build/opt/mongo/db/libkeys_collection_client_sharded.a build/opt/mongo/db/keys_collection_client_sharded.o Skipping ranlib for thin archive build/opt/mongo/db/libkeys_collection_client_sharded.a ar rcsTD build/opt/mongo/db/libcursor_server_params.a build/opt/mongo/db/cursor_server_params.o 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/libcursor_server_params.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/file_reader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/file_reader.cpp Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libexpression_context.a ar rcsTD build/opt/mongo/db/repl/librollback_checker.a build/opt/mongo/db/repl/rollback_checker.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_checker.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/global_conn_pool.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, 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:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.c /home/naourr/work/instance-2/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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.c /home/naourr/work/instance-2/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.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 -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 -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.c ar rcsTD build/opt/mongo/db/storage/libstorage_options.a build/opt/mongo/db/storage/storage_options.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_options.a ar rcsTD build/opt/mongo/base/libsecure_allocator.a build/opt/mongo/base/secure_allocator.o Skipping ranlib for thin archive build/opt/mongo/base/libsecure_allocator.a ar rcsTD build/opt/mongo/util/libversion_impl.a build/opt/mongo/util/version_impl.o Skipping ranlib for thin archive build/opt/mongo/util/libversion_impl.a ar rcsTD build/opt/mongo/db/commands/libwrite_commands_common.a build/opt/mongo/db/commands/write_commands/write_commands_common.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libwrite_commands_common.a /home/naourr/work/instance-2/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 -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/cluster_last_error_info.cpp ar rcsTD build/opt/mongo/db/repl/liboplog_buffer_collection.a build/opt/mongo/db/repl/oplog_buffer_collection.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_buffer_collection.a ar rcsTD build/opt/mongo/db/commands/libtest_commands_enabled.a build/opt/mongo/db/commands/test_commands_enabled.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libtest_commands_enabled.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/connpool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/connpool.cpp Using tempfile /tmp/tmpqhQVMx.lnk for command line: ar rcsTD build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.o ar @/tmp/tmpqhQVMx.lnk Skipping ranlib for thin archive build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a ar rcsTD build/opt/mongo/s/catalog/libdist_lock_catalog_interface.a build/opt/mongo/s/catalog/dist_lock_catalog.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libdist_lock_catalog_interface.a 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 ar rcsTD build/opt/mongo/db/free_mon/libfree_mon.a build/opt/mongo/db/free_mon/free_mon_processor.o build/opt/mongo/db/free_mon/free_mon_queue.o build/opt/mongo/db/free_mon/free_mon_op_observer.o build/opt/mongo/db/free_mon/free_mon_storage.o build/opt/mongo/db/free_mon/free_mon_controller.o build/opt/mongo/db/free_mon/free_mon_protocol_gen.o build/opt/mongo/db/free_mon/free_mon_commands_gen.o build/opt/mongo/db/free_mon/free_mon_storage_gen.o Skipping ranlib for thin archive build/opt/mongo/db/free_mon/libfree_mon.a ar rcsTD build/opt/mongo/db/pipeline/libdependencies.a build/opt/mongo/db/pipeline/dependencies.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libdependencies.a ar rcsTD build/opt/mongo/db/libsessions_collection_standalone.a build/opt/mongo/db/sessions_collection_standalone.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_standalone.a ar rcsTD build/opt/mongo/s/write_ops/libcluster_write_op.a build/opt/mongo/s/write_ops/batch_write_exec.o build/opt/mongo/s/write_ops/batch_write_op.o build/opt/mongo/s/write_ops/chunk_manager_targeter.o build/opt/mongo/s/write_ops/write_op.o Skipping ranlib for thin archive build/opt/mongo/s/write_ops/libcluster_write_op.a ar rcsTD build/opt/mongo/db/exec/libstagedebug_cmd.a build/opt/mongo/db/exec/stagedebug_cmd.o Skipping ranlib for thin archive build/opt/mongo/db/exec/libstagedebug_cmd.a ar rcsTD build/opt/mongo/db/libstartup_warnings_common.a build/opt/mongo/db/startup_warnings_common.o Skipping ranlib for thin archive build/opt/mongo/db/libstartup_warnings_common.a ar rcsTD build/opt/mongo/db/libcurop_failpoint_helpers.a build/opt/mongo/db/curop_failpoint_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/libcurop_failpoint_helpers.a ar rcsTD build/opt/mongo/shell/libmongojs.a build/opt/mongo/shell/mongo.o Skipping ranlib for thin archive build/opt/mongo/shell/libmongojs.a ar rcsTD build/opt/mongo/db/auth/libauthservercommon.a build/opt/mongo/db/auth/authz_session_external_state_server_common.o build/opt/mongo/db/auth/sasl_commands.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthservercommon.a ar rcsTD build/opt/mongo/rpc/liblegacy_reply.a build/opt/mongo/rpc/legacy_reply.o build/opt/mongo/rpc/legacy_reply_builder.o Skipping ranlib for thin archive build/opt/mongo/rpc/liblegacy_reply.a ar rcsTD build/opt/mongo/executor/libegress_tag_closer_manager.a build/opt/mongo/executor/egress_tag_closer_manager.o Skipping ranlib for thin archive build/opt/mongo/executor/libegress_tag_closer_manager.a ar rcsTD build/opt/mongo/db/repl/libreplication_recovery.a build/opt/mongo/db/repl/replication_recovery.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_recovery.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/kill_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/kill_sessions_gen.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/collection_cloner.h:35, from src/mongo/db/repl/collection_cloner.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::CursorResponse}; _Tp = mongo::CursorResponse; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::CursorResponse}; _Tp = mongo::CursorResponse; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ 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/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_min_max.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_min_max.cpp /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::repl::CollectionCloner::_establishCollectionCursorsCallback(const RemoteCommandCallbackArgs&, mongo::repl::CollectionCloner::EstablishCursorsCommand)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:69, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stack:60, from src/mongo/client/connpool.h:36, from src/mongo/client/connpool.cpp:40: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_destroy_data_aux(std::deque<_Tp, _Alloc>::iterator, std::deque<_Tp, _Alloc>::iterator) [with _Tp = mongo::PoolForHost::StoredConnection; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:854:6: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 854 | deque<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:854:6: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_min_max.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/client/dbclientinterface.h:36, from src/mongo/client/connpool.h:38, from src/mongo/client/connpool.cpp:40: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.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::PoolForHost::StoredConnection}; _Tp = mongo::PoolForHost::StoredConnection; _Alloc = std::allocator]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_min_max.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::PoolForHost::getStaleConnections(mongo::Date_t, std::vector&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:67, from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stack:60, from src/mongo/client/connpool.h:36, from src/mongo/client/connpool.cpp:40: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In member function 'void mongo::PoolForHost::clear()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 2114 | _M_destroy_data_aux(__first, __last); | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 2114 | _M_destroy_data_aux(__first, __last); | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In destructor 'mongo::PoolForHost::~PoolForHost()': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 2114 | _M_destroy_data_aux(__first, __last); | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_entry_point_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/transport/service_entry_point_utils.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/client/connpool.h:38, from src/mongo/client/connpool.cpp:40: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member 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 = mongo::DBConnectionPool::PoolKey; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = mongo::DBConnectionPool::poolKeyCompare; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/client/connpool.h:38, from src/mongo/client/connpool.cpp:40: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'bool mongo::DBConnectionPool::isConnectionGood(const string&, mongo::DBClientBase*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'void mongo::DBConnectionPool::decrementEgress(const string&, mongo::DBClientBase*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'int mongo::DBConnectionPool::openConnections(const string&, double)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'mongo::DBClientBase* mongo::DBConnectionPool::_get(const string&, double)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'void mongo::DBConnectionPool::release(const string&, mongo::DBClientBase*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'mongo::DBClientBase* mongo::DBConnectionPool::_finishCreate(const string&, double, mongo::DBClientBase*)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In static member function 'static mongo::DBClientBase* mongo::DBConnectionPool::Detail::get(mongo::DBConnectionPool*, const string&, double, Connect) [with Connect = mongo::DBConnectionPool::get(const mongo::ConnectionString&, double)::]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In static member function 'static mongo::DBClientBase* mongo::DBConnectionPool::Detail::get(mongo::DBConnectionPool*, const string&, double, Connect) [with Connect = mongo::DBConnectionPool::get(const string&, double)::]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In static member function 'static mongo::DBClientBase* mongo::DBConnectionPool::Detail::get(mongo::DBConnectionPool*, const string&, double, Connect) [with Connect = mongo::DBConnectionPool::get(const mongo::MongoURI&, double)::]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, ar rcsTD build/opt/mongo/transport/libtransport_layer_common.a build/opt/mongo/transport/service_entry_point_utils.o build/opt/mongo/transport/session.o build/opt/mongo/transport/transport_layer.o Skipping ranlib for thin archive build/opt/mongo/transport/libtransport_layer_common.a ar rcsTD build/opt/mongo/util/concurrency/libticketholder.a build/opt/mongo/util/concurrency/ticketholder.o Skipping ranlib for thin archive build/opt/mongo/util/concurrency/libticketholder.a ar rcsTD build/opt/third_party/libshim_allocator.a build/opt/third_party/shim_allocator.o Skipping ranlib for thin archive build/opt/third_party/libshim_allocator.a ar rcsTD build/opt/mongo/client/libread_preference.a build/opt/mongo/client/read_preference.o Skipping ranlib for thin archive build/opt/mongo/client/libread_preference.a ar rcsTD build/opt/mongo/db/commands/liblist_collections_filter.a build/opt/mongo/db/commands/list_collections_filter.o ar rcsTD build/opt/mongo/client/libclientdriver_network.a build/opt/mongo/client/connection_string_connect.o build/opt/mongo/client/mongo_uri_connect.o build/opt/mongo/client/connpool.o build/opt/mongo/client/dbclient_connection.o build/opt/mongo/client/dbclient_rs.o build/opt/mongo/client/global_conn_pool.o build/opt/mongo/client/replica_set_monitor.o build/opt/mongo/client/replica_set_monitor_manager.o Skipping ranlib for thin archive build/opt/mongo/db/commands/liblist_collections_filter.a ar rcsTD build/opt/mongo/util/libclock_sources.a build/opt/mongo/util/background_thread_clock_source.o build/opt/mongo/util/clock_source.o build/opt/mongo/util/fast_clock_source_factory.o Skipping ranlib for thin archive build/opt/mongo/client/libclientdriver_network.a ar rcsTD build/opt/mongo/s/libcoreshard.a build/opt/mongo/s/catalog_cache_loader.o build/opt/mongo/s/cluster_identity_loader.o build/opt/mongo/s/config_server_catalog_cache_loader.o build/opt/mongo/s/config_server_client.o build/opt/mongo/s/shard_util.o build/opt/mongo/s/sharding_egress_metadata_hook.o Skipping ranlib for thin archive build/opt/mongo/util/libclock_sources.a ar rcsTD build/opt/mongo/s/catalog/libdist_lock_manager.a build/opt/mongo/s/catalog/dist_lock_manager.o build/opt/mongo/s/catalog/dist_lock_ping_info.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libdist_lock_manager.a ar rcsTD build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.o Skipping ranlib for thin archive build/opt/mongo/s/libcoreshard.a ar rcsTD build/opt/mongo/db/repl/libcollection_cloner.a build/opt/mongo/db/repl/collection_cloner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libcollection_cloner.a ar rcsTD build/opt/mongo/db/liblogical_session_cache_factory_mongod.a build/opt/mongo/db/logical_session_cache_factory_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a ar rcsTD build/opt/mongo/db/repl/libsplit_horizon.a build/opt/mongo/db/repl/split_horizon.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache_factory_mongod.a ar rcsTD build/opt/mongo/db/pipeline/libaggregation_request.a build/opt/mongo/db/pipeline/aggregation_request.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libsplit_horizon.a 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/pipeline/libaggregation_request.a ar rcsTD build/opt/mongo/db/query/libexplain_options.a build/opt/mongo/db/query/explain_options.o Skipping ranlib for thin archive build/opt/mongo/db/query/libexplain_options.a ar rcsTD build/opt/mongo/db/storage/kv/libkv_storage_engine.a build/opt/mongo/db/storage/kv/kv_storage_engine.o Skipping ranlib for thin archive build/opt/mongo/db/libtime_proof_service.a Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_storage_engine.a ar rcsTD build/opt/mongo/db/ftdc/libftdc.a build/opt/mongo/db/ftdc/block_compressor.o build/opt/mongo/db/ftdc/collector.o build/opt/mongo/db/ftdc/compressor.o build/opt/mongo/db/ftdc/controller.o build/opt/mongo/db/ftdc/decompressor.o build/opt/mongo/db/ftdc/file_manager.o build/opt/mongo/db/ftdc/file_reader.o build/opt/mongo/db/ftdc/file_writer.o build/opt/mongo/db/ftdc/util.o build/opt/mongo/db/ftdc/varint.o In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/ftdc/libftdc.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_move_primary_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_move_primary_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_mongos.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_min_max.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.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/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_min_max.cpp:33: 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:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | 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::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ ar rcsTD build/opt/mongo/db/pipeline/libaccumulator.a build/opt/mongo/db/pipeline/accumulation_statement.o build/opt/mongo/db/pipeline/accumulator_add_to_set.o build/opt/mongo/db/pipeline/accumulator_avg.o build/opt/mongo/db/pipeline/accumulator_first.o build/opt/mongo/db/pipeline/accumulator_last.o build/opt/mongo/db/pipeline/accumulator_min_max.o build/opt/mongo/db/pipeline/accumulator_push.o build/opt/mongo/db/pipeline/accumulator_std_dev.o build/opt/mongo/db/pipeline/accumulator_sum.o build/opt/mongo/db/pipeline/accumulator_merge_objects.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libaccumulator.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:34: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libkill_sessions.a build/opt/mongo/db/kill_sessions.o build/opt/mongo/db/kill_sessions_common.o build/opt/mongo/db/session_killer.o build/opt/mongo/db/kill_sessions_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libkill_sessions.a Using tempfile /tmp/tmpSPwykd.lnk for command line: /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/mongod -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,-z,relro -pie build/opt/mongo/db/dbmain.o -Wl,--start-group -Wl,--whole-archive build/opt/mongo/libmongodmain.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/options_parser/liboptions_parser_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libversion_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libmongod_options_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libstorage_interface_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_set_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_set_status_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_context_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libservice_entry_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_entry_point_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserveronly.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_init_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libindex_entry_comparison.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/devnull/libstorage_devnull.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_engine.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_storage_engine.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_database_catalog_entry_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_engine_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libbson_collection_catalog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/devnull/libstorage_devnull_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libop_observer_sharding_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libcommands_db_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/commands/libshared_cluster_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libserveronly_repl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_recovery.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_consistency_markers_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_consistency_markers_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_coordinator_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libtopology_coordinator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libscatter_gather.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreporter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdata_replicator_external_state_initial_sync.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libbgsync.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libsync_source_resolver.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librs_rollback.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librslog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_source_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libroll_back_local_operations.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_interface_remote.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_interface_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdata_replicator_external_state_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_buffer_proxy.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_buffer_collection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_application.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_runtime_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_initialization.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libreplset_dist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_catalog_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache_factory_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_liaison_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/libshard_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libmigration_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libop_observer_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplogreader.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libinitial_syncer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_checker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_fetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libabstract_oplog_fetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_buffer_blocking_queue.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libmultiapplier.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdatabases_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdatabase_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libcollection_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libtask_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libabstract_async_component.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libconnection_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libttl_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libstartup_warnings_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libstartup_warnings_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libprefetch.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/fts/libftsmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librepair_database_and_check_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libperiodic_runner_job_abort_expired_transactions.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmongodandmongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsecurity_key.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmongod_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache_factory_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libtransaction_reaper.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_standalone.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_config_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/write_ops/libcluster_write_op.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libstore_possible_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_cursor_cleanup_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_client_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/librouter_exec_stage.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/commands/libcluster_commands_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_rs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libremote_command_targeter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_liaison_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_client_direct.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/librs_local_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libinitialize_snmp.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/free_mon/libfree_mon_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprocparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/free_mon/libfree_mon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_catalog_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libtype_shard_identity.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/libstagedebug_cmd.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libstandalone.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ops/libwrite_ops_exec.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librw_concern_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libtimer_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommand_can_run_here.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libwrite_commands_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/liblist_databases_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/liblist_collections_filter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libcurrent_op_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libshell_protocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libprofile_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libmongod_fsync.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libstorage_mmapv1.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/librecord_access_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/liblogfile.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libmmap.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libfile_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libcompress.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libjournal_listener.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_prefix.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libfsync_locked.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libmongod_fcv.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkill_sessions_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libkill_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcatalog_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/views/libviews_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libmmap_v1_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_engine_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_engine_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libpaths.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_engine_lock_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libbalancer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdrop_pending_collection_reaper.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libttl_collection_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsystem_index.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librepair_database.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/librepair_database_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_repair_observer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_file_util.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libserver_read_concern_write_concern_metrics.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdbcheck.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libop_observer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libindex_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libindex_access_methods.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcollection_index_usage_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_key_validate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libhealth_log.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/concurrency/libdeferred_writer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcatalog_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_create.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcollection_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbhelpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libwrite_ops.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libintrospect.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libquery_exec.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libelapsed_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/liboplog_hack.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libserveronly_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/datetime/libinit_timezone_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/matcher/libexpressions_mongod_only.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting_none.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libbson_template_evaluator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcursor_server_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libbackground.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/libworking_set.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/libscoped_timer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcollection_info_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdb_raii.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcatalog_raii.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/views/libviews.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/views/libresolved_view.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaggregation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libpipeline.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libasync_results_merger.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libasync_requests_sender.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libsharding_catalog_client_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/libsharding_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libfetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libparsed_aggregation_projection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libgranularity_rounder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_sources_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaccumulator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libkey_generator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/fts/libbase_fts.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_stemmer.a -Wl,--no-whole-archive build/opt/third_party/libstemmer_c/libstemmer.a -Wl,--whole-archive build/opt/mongo/db/fts/unicode/libunicode.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/liblinenoise_utf8.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libtop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libfill_locker_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbdirectclient.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcurop_metrics.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcurop_failpoint_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libindex_access_method.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libbtree.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/librecord_store_v1.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libextent.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libencryption_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcurop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprogress_meter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libindex_descriptor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/concurrency/libwrite_conflict_exception.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_catalog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthservercommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libservers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libntservice.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsignal_handlers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libmongojs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_legacy_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcluster_last_error_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblasterror.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcoreshard.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libthread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libgrid.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_cursor_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libgeneric_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/libshard_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libremote_command_retry_scheduler.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time_metadata_hook.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libtask_executor_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libisself.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclientdriver_network.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libthread_pool_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_thread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_tl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libservice_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/base/libsystem_error.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libasync_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libtask_executor_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libconnection_pool_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libegress_tag_closer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libconnection_pool_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblog_process_details.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplica_set_messages.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libsplit_horizon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_coordinator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_process.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libstorage_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_zlib.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_snappy.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/cmdline_utils/libcmdline_utils.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libfeature_compatibility_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libcore.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/logger/libparse_log_component_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_api_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_routing_table.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libkey_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librange_arithmetic.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/concurrency/liblock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libticketholder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/write_ops/libbatch_write_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ops/libwrite_ops_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_liaison.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_id_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkill_sessions.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclientdriver_minimal.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclient_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libauthentication.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsecurity_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsaslauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libsasl_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libremote_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth_impl_internal_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth_impl_internal.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_asio.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/asio-master/libasio.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libbackground_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libcounters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libwire_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/liblegacy_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/liblegacy_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcommon_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libconnection_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libdns_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libobject_check.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libmetadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libclient_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libis_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time_validator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsigned_logical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_client_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libsharding_catalog_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_document.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libtime_proof_service.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libread_preference.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbmessage.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libaudit.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libtest_commands_enabled.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libinternal_user_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libicu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libicu_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_i18n.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/liblite_parsed_document_source.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdocument_validation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser_document_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/librole_graph_update.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate_driver.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libupdate_index_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_clock.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libglobal_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_planner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libindex_bounds.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/matcher/libexpressions.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_knobs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libexpression.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsummation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libexpression_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_factory_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaggregation_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libexplain_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libcommand_request_response.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libread_concern_args.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libuuid_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdatabase_holder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdatabase.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcollection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libnamespace_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboptime.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdependencies.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_value.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libintrusive_counter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/datetime/libdate_time_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_timelib.a -Wl,--no-whole-archive build/opt/third_party/timelib-2018.01alpha1/libtimelib.a -Wl,--whole-archive build/opt/mongo/db/pipeline/libfield_path.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/matcher/libpath.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/fts/libfts_query_noop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libexpression_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmongohasher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libmd5.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/geo/libgeoparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/geo/libgeometry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/libs2.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/util/math/libmath.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/util/coding/libcoding.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/strings/libstrings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/base/libbase_s2.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/bson/libdotted_path_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsasl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/options_parser/liboptions_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_yaml.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/librole_graph.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthprivilege.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libindex_names.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthorization_manager_global.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libaudit_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libfail_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libclock_sources.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libwrite_unit_of_work.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha_block_openssl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha1_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha256_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsecure_compare_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser_name.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth_rolename.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libaddress_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/idl/libidl_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommand_generic_argument.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthentication_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libnetwork.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libwinutil.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libspin_lock.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/bson/util/libbson_extract.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/bson/mutable/libmutable_bson.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsafe_num.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/base/libsecure_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsecure_zero_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprocessinfo.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libbase.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/murmurhash3/libmurmurhash3.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_pcrecpp.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a -Wl,--whole-archive build/opt/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libquick_exit.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_allocator.a -Wl,--no-whole-archive build/opt/mongo/util/libdebugger.a -Wl,--end-group -lcurl -lz -lsnappy -lyaml-cpp -lpcre -lpcrecpp -lboost_program_options -lboost_filesystem -lboost_system -lboost_iostreams -lm -lresolv -lcrypto -lssl -lcrypto -ldl -lrt -ldl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ @/tmp/tmpSPwykd.lnk In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_primary_cmd.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongos.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_move_chunk_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_move_chunk_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_set_free_monitoring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_set_free_monitoring.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_enable_sharding_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_enable_sharding_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:41: 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_free_monitoring.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_free_monitoring.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_free_monitoring.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_free_monitoring.cpp:34: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_free_monitoring.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:39: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_set_free_monitoring.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_move_chunk_cmd.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_drop_indexes_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_drop_indexes_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_enable_sharding_cmd.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_create_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_create_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_shutdown_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_shutdown_cmd.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_cmd.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_indexes_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/strategy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/strategy.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shutdown_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_list_databases_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_list_databases_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_compact_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_compact_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:40: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:40: 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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:40: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/strategy.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:40: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_compact_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member 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::allocator >&>, std::tuple<>}; _Key = std::__cxx11::basic_string; _Val = std::pair, long long int>; _KeyOfValue = std::_Select1st, long long int> >; _Compare = std::less >; _Alloc = std::allocator, long long int> >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long int>, std::_Select1st, long long int> >, std::less >, std::allocator, long long int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, long long int> >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/s/commands/cluster_list_databases_cmd.cpp:33: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'virtual bool mongo::{anonymous}::ListDatabasesCmd::run(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder&)': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long int>, std::_Select1st, long long int> >, std::less >, std::allocator, long long int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, long long int> >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_getmore_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_getmore_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_kill_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_kill_op.cpp In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_type_endian.h:38, from src/mongo/bson/util/builder.h:45, from src/mongo/client/connection_string.h:40, from src/mongo/s/commands/strategy.h:35, from src/mongo/s/commands/strategy.cpp:35: src/mongo/s/commands/strategy.cpp: In function 'void mongo::{anonymous}::runCommand(mongo::OperationContext*, const mongo::OpMsgRequest&, mongo::NetworkOp, mongo::BSONObjBuilder&&)': src/mongo/s/commands/strategy.cpp:323:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 323 | QueryRequest::parseMaxTimeMS(request.body[QueryRequest::cmdOptionMaxTimeMS])); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_cmd.cpp:34: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_kill_op.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_kill_op.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_kill_op.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_kill_op.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_write_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_write_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_getmore_cmd.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_merge_chunks_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_merge_chunks_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_kill_op.cpp:45: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: 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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_list_shards_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_list_shards_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_write_cmd.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_shards_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_shards_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/field_parser.h:328, from src/mongo/s/commands/cluster_merge_chunks_cmd.cpp:38: src/mongo/db/field_parser-inl.h: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField >&, std::vector*, std::string*) [with T = mongo::BSONObj]': src/mongo/db/field_parser-inl.h:160:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 160 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_available_query_options_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_available_query_options_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_list_shards_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_fsync_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_fsync_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_repl_set_get_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_available_query_options_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_add_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_add_shard_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_ftdc_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_ftdc_commands.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_plan_cache_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_plan_cache_cmd.cpp 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:35: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.cpp:37: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_whats_my_uri_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_plan_cache_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_ftdc_commands.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_split_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_split_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_collection_mod_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_collection_mod_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_data_size_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_data_size_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_collection_mod_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_profile_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_profile_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_data_size_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_profile_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_geo_near_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_geo_near_cmd.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_profile_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_profile_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_profile_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_aggregate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_aggregate.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_geo_near_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_geo_near_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_profile_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/commands/cluster_aggregate.h:40, from src/mongo/s/commands/cluster_aggregate.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/commands/cluster_aggregate.h:40, from src/mongo/s/commands/cluster_aggregate.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_current_op.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/commands/cluster_aggregate.h:40, from src/mongo/s/commands/cluster_aggregate.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/commands/cluster_aggregate.h:40, from src/mongo/s/commands/cluster_aggregate.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_geo_near_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/commands_public.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/commands_public.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/commands/cluster_aggregate.h:40, from src/mongo/s/commands/cluster_aggregate.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/commands/cluster_multicast_gen.h --output build/opt/mongo/s/commands/cluster_multicast_gen.cpp src/mongo/s/commands/cluster_multicast.idl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_multicast_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc build/opt/mongo/s/commands/cluster_multicast_gen.cpp In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/s/commands/cluster_aggregate.h:37, from src/mongo/s/commands/cluster_aggregate.cpp:35: src/mongo/s/commands/cluster_aggregate.cpp: In static member function 'static mongo::Status mongo::ClusterAggregate::runAggregate(mongo::OperationContext*, const mongo::ClusterAggregate::Namespaces&, const mongo::AggregationRequest&, mongo::BSONObj, mongo::BSONObjBuilder*)': src/mongo/s/commands/cluster_aggregate.cpp:721:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 721 | UUID::parse(unshardedCollInfo["info"]["uuid"]))} | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/commands_public.cpp:41: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/cluster_multicast_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/cluster_multicast_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/cluster_multicast_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/cluster_multicast_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/kill_sessions_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/kill_sessions_remote.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/commands/cluster_multicast_gen.cpp:16: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_user_management_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_user_management_commands.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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_netstat_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_netstat_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_commands.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_commands.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_commands.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_commands.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/commands/kill_sessions_remote.cpp:47: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_get_prev_error_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_get_prev_error_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_user_management_commands.cpp:42: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_netstat_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_reset_error_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_reset_error_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_prev_error_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_count_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_count_cmd.cpp src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_prev_error_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_prev_error_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_prev_error_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_prev_error_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_drop_database_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_drop_database_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reset_error_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_count_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_multicast.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_multicast.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_drop_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_drop_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_database_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_restart_catalog_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_restart_catalog_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_multicast.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_restart_catalog_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_restart_catalog_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_restart_catalog_command.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_restart_catalog_command.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_distinct_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_distinct_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_drop_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_restart_catalog_command.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_killcursors_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_killcursors_cmd.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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_eval_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_eval_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/s/commands/cluster_killcursors_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:34: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/s/commands/cluster_killcursors_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_eval_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_distinct_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_eval_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_eval_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_eval_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/s/commands/cluster_killcursors_cmd.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_get_shard_version_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_get_shard_version_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_eval_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_reindex_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_reindex_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_remove_shard_from_zone_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reindex_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reindex_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:39: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reindex_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reindex_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_reindex_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_shard_version_cmd.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_is_master_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_is_master_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_explain_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_explain_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_db_stats_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_db_stats_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/s/commands/cluster_is_master_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/s/commands/cluster_is_master_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/s/commands/cluster_is_master_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/s/commands/cluster_is_master_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ 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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/s/commands/cluster_is_master_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_control_balancer_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_control_balancer_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_update_zone_key_range_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_db_stats_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:37: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_filemd5_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_filemd5_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:39: 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_control_balancer_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_update_zone_key_range_cmd.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_coll_stats_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_coll_stats_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_add_shard_to_zone_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_filemd5_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:36: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_map_reduce_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_map_reduce_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_add_shard_to_zone_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_remove_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_remove_shard_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_get_last_error_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_get_last_error_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_get_last_error_cmd.cpp:39: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_index_filter_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_index_filter_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_map_reduce_cmd.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_is_db_grid_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_is_db_grid_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:35: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/pipeline_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/pipeline_s.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_is_db_grid_cmd.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_explain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_explain.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_index_filter_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_shard_collection_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_shard_collection_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/s/commands/pipeline_s.h:33, from src/mongo/s/commands/pipeline_s.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/s/commands/pipeline_s.h:33, from src/mongo/s/commands/pipeline_s.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/commands/pipeline_s.h:34, from src/mongo/s/commands/pipeline_s.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/commands/pipeline_s.h:34, from src/mongo/s/commands/pipeline_s.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:49: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:49: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:49: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:49: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/commands/pipeline_s.h:34, from src/mongo/s/commands/pipeline_s.cpp:33: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: 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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_shard_collection_cmd.cpp:49: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_build_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_build_info.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_pipeline_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_pipeline_cmd.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_find_and_modify_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_find_and_modify_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:37: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_build_info.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_create_indexes_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_create_indexes_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_pipeline_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_validate_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_validate_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:36: 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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_create_indexes_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_and_modify_cmd.cpp:36: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_find_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/commands/cluster_find_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_validate_cmd.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_cmd.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_cmd.cpp:37: 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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_cmd.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/sharding_egress_metadata_hook_for_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/sharding_egress_metadata_hook_for_mongos.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/sharding_uptime_reporter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/sharding_uptime_reporter.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_find_cmd.cpp:37: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/committed_optime_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/committed_optime_metadata_hook.cpp ar rcsTD build/opt/mongo/s/commands/libcluster_commands.a build/opt/mongo/s/commands/cluster_add_shard_cmd.o build/opt/mongo/s/commands/cluster_add_shard_to_zone_cmd.o build/opt/mongo/s/commands/cluster_aggregate.o build/opt/mongo/s/commands/cluster_available_query_options_cmd.o build/opt/mongo/s/commands/cluster_build_info.o build/opt/mongo/s/commands/cluster_coll_stats_cmd.o build/opt/mongo/s/commands/cluster_collection_mod_cmd.o build/opt/mongo/s/commands/cluster_compact_cmd.o build/opt/mongo/s/commands/cluster_control_balancer_cmd.o build/opt/mongo/s/commands/cluster_count_cmd.o build/opt/mongo/s/commands/cluster_create_cmd.o build/opt/mongo/s/commands/cluster_create_indexes_cmd.o build/opt/mongo/s/commands/cluster_current_op.o build/opt/mongo/s/commands/cluster_data_size_cmd.o build/opt/mongo/s/commands/cluster_db_stats_cmd.o build/opt/mongo/s/commands/cluster_distinct_cmd.o build/opt/mongo/s/commands/cluster_drop_cmd.o build/opt/mongo/s/commands/cluster_drop_database_cmd.o build/opt/mongo/s/commands/cluster_drop_indexes_cmd.o build/opt/mongo/s/commands/cluster_enable_sharding_cmd.o build/opt/mongo/s/commands/cluster_eval_cmd.o build/opt/mongo/s/commands/cluster_explain.o build/opt/mongo/s/commands/cluster_explain_cmd.o build/opt/mongo/s/commands/cluster_filemd5_cmd.o build/opt/mongo/s/commands/cluster_find_and_modify_cmd.o build/opt/mongo/s/commands/cluster_find_cmd.o build/opt/mongo/s/commands/cluster_fsync_cmd.o build/opt/mongo/s/commands/cluster_ftdc_commands.o build/opt/mongo/s/commands/cluster_geo_near_cmd.o build/opt/mongo/s/commands/cluster_get_last_error_cmd.o build/opt/mongo/s/commands/cluster_get_prev_error_cmd.o build/opt/mongo/s/commands/cluster_get_shard_version_cmd.o build/opt/mongo/s/commands/cluster_getmore_cmd.o build/opt/mongo/s/commands/cluster_index_filter_cmd.o build/opt/mongo/s/commands/cluster_is_db_grid_cmd.o build/opt/mongo/s/commands/cluster_is_master_cmd.o build/opt/mongo/s/commands/cluster_kill_op.o build/opt/mongo/s/commands/cluster_killcursors_cmd.o build/opt/mongo/s/commands/cluster_list_databases_cmd.o build/opt/mongo/s/commands/cluster_list_shards_cmd.o build/opt/mongo/s/commands/cluster_map_reduce_cmd.o build/opt/mongo/s/commands/cluster_merge_chunks_cmd.o build/opt/mongo/s/commands/cluster_move_chunk_cmd.o build/opt/mongo/s/commands/cluster_move_primary_cmd.o build/opt/mongo/s/commands/cluster_multicast.o build/opt/mongo/s/commands/cluster_netstat_cmd.o build/opt/mongo/s/commands/cluster_pipeline_cmd.o build/opt/mongo/s/commands/cluster_plan_cache_cmd.o build/opt/mongo/s/commands/cluster_profile_cmd.o build/opt/mongo/s/commands/cluster_reindex_cmd.o build/opt/mongo/s/commands/cluster_remove_shard_cmd.o build/opt/mongo/s/commands/cluster_remove_shard_from_zone_cmd.o build/opt/mongo/s/commands/cluster_repl_set_get_status_cmd.o build/opt/mongo/s/commands/cluster_reset_error_cmd.o build/opt/mongo/s/commands/cluster_restart_catalog_command.o build/opt/mongo/s/commands/cluster_set_feature_compatibility_version_cmd.o build/opt/mongo/s/commands/cluster_set_free_monitoring.o build/opt/mongo/s/commands/cluster_shard_collection_cmd.o build/opt/mongo/s/commands/cluster_shutdown_cmd.o build/opt/mongo/s/commands/cluster_split_cmd.o build/opt/mongo/s/commands/cluster_update_zone_key_range_cmd.o build/opt/mongo/s/commands/cluster_user_management_commands.o build/opt/mongo/s/commands/cluster_validate_cmd.o build/opt/mongo/s/commands/cluster_whats_my_uri_cmd.o build/opt/mongo/s/commands/cluster_write_cmd.o build/opt/mongo/s/commands/commands_public.o build/opt/mongo/s/commands/kill_sessions_remote.o build/opt/mongo/s/commands/pipeline_s.o build/opt/mongo/s/commands/strategy.o build/opt/mongo/s/commands/cluster_multicast_gen.o /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_manager_external_state_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state_s.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_session_external_state_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state_s.cpp Skipping ranlib for thin archive build/opt/mongo/s/commands/libcluster_commands.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_cache_invalidator_job.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_cache_invalidator_job.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/server.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_cache_invalidator_job.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_cache_invalidator_job.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_cache_invalidator_job.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_cache_invalidator_job.cpp:44: 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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_cache_invalidator_job.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/cluster_cursor_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/cluster_cursor_stats.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_cache_invalidator_job.cpp:44: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:85: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:85: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:85: 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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:85: 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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauthmongos.a build/opt/mongo/db/auth/authz_manager_external_state_s.o build/opt/mongo/db/auth/authz_session_external_state_s.o build/opt/mongo/db/auth/user_cache_invalidator_job.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthmongos.a ar rcsTD build/opt/mongo/s/libsharding_egress_metadata_hook_for_mongos.a build/opt/mongo/s/sharding_egress_metadata_hook_for_mongos.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_egress_metadata_hook_for_mongos.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batch_downconvert.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_downconvert.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/cluster_cursor_stats.cpp:35: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/write_ops/libcluster_write_op_conversion.a build/opt/mongo/s/write_ops/batch_downconvert.o Skipping ranlib for thin archive build/opt/mongo/s/write_ops/libcluster_write_op_conversion.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/mongos_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/mongos_options_init.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/server.cpp:85: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/async_multicaster.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/executor/async_multicaster.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/s_sharding_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/s_sharding_server_status.cpp /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/mongos_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/mongos_options.cpp In file included from /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/executor/async_multicaster.h:33, from src/mongo/executor/async_multicaster.cpp:35: /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::tuple}; _Tp = std::tuple; _Alloc = std::allocator >]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static void std::_Function_handler::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Functor = mongo::executor::AsyncMulticaster::multicast(std::vector, const string&, const mongo::BSONObj&, mongo::OperationContext*, mongo::Milliseconds)::; _ArgTypes = {const mongo::executor::TaskExecutor::RemoteCommandCallbackArgs&}]': /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: 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)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/executor/libasync_multicaster.a build/opt/mongo/executor/async_multicaster.o Skipping ranlib for thin archive build/opt/mongo/executor/libasync_multicaster.a ar rcsTD build/opt/mongo/s/libcommitted_optime_metadata_hook.a build/opt/mongo/s/committed_optime_metadata_hook.o Skipping ranlib for thin archive build/opt/mongo/s/libcommitted_optime_metadata_hook.a /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/service_entry_point_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/service_entry_point_mongos.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/s/s_sharding_server_status.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/s/s_sharding_server_status.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/s/s_sharding_server_status.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/s/s_sharding_server_status.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/service_entry_point_mongos.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/service_entry_point_mongos.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/service_entry_point_mongos.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:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192: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:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214: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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236: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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258: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:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280: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:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300: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:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344: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:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380: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:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561: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:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582: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:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603: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:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/service_entry_point_mongos.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:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128: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:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157: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:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186: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:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/version_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -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 -Ibuild/opt -Isrc src/mongo/s/version_mongos.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/s/s_sharding_server_status.cpp:34: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/ftdc/libftdc_mongos.a build/opt/mongo/db/ftdc/ftdc_mongos.o Skipping ranlib for thin archive build/opt/mongo/db/ftdc/libftdc_mongos.a In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/service_entry_point_mongos.cpp:38: 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61: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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Using tempfile /tmp/tmpX8jZZV.lnk for command line: /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/mongos -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,-z,relro -pie build/opt/mongo/s/cluster_cursor_stats.o build/opt/mongo/s/mongos_options.o build/opt/mongo/s/mongos_options_init.o build/opt/mongo/s/s_sharding_server_status.o build/opt/mongo/s/server.o build/opt/mongo/s/service_entry_point_mongos.o build/opt/mongo/s/sharding_uptime_reporter.o build/opt/mongo/s/version_mongos.o -Wl,--start-group -Wl,--whole-archive build/opt/mongo/util/options_parser/liboptions_parser_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libversion_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libservice_entry_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_initialization.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libreplset_dist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_catalog_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache_factory_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_rs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbdirectclient.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libremote_command_targeter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_liaison_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_egress_metadata_hook_for_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcommitted_optime_metadata_hook.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/commands/libcluster_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/write_ops/libcluster_write_op_conversion.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/write_ops/libcluster_write_op.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libstore_possible_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_cursor_cleanup_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcursor_server_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_client_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/librouter_exec_stage.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/commands/libcluster_commands_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/datetime/libinit_timezone_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcurop_failpoint_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/commands/libshared_cluster_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libasync_multicaster.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/views/libviews.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/views/libresolved_view.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaggregation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libpipeline.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libasync_results_merger.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libasync_requests_sender.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libsharding_catalog_client_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/libsharding_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libfetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libtop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libparsed_aggregation_projection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libgranularity_rounder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_sources_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaccumulator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libkey_generator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libindex_descriptor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/fts/libbase_fts.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_stemmer.a -Wl,--no-whole-archive build/opt/third_party/libstemmer_c/libstemmer.a -Wl,--whole-archive build/opt/mongo/db/fts/unicode/libunicode.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/liblinenoise_utf8.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libwrite_commands_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libprofile_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/liblist_databases_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libkill_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libcurrent_op_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libencryption_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libstartup_warnings_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmongodandmongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsecurity_key.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcurop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprogress_meter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprocparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthmongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthservercommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libservers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libntservice.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsignal_handlers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libmongojs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_legacy_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcluster_last_error_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblasterror.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcoreshard.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libthread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libgrid.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_cursor_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libgeneric_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/libshard_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libremote_command_retry_scheduler.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time_metadata_hook.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libtask_executor_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libisself.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclientdriver_network.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libthread_pool_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_thread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_tl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libservice_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/base/libsystem_error.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libasync_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libtask_executor_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libconnection_pool_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libegress_tag_closer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libconnection_pool_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblog_process_details.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplica_set_messages.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libsplit_horizon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_coordinator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_process.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libstorage_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_zlib.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_snappy.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/cmdline_utils/libcmdline_utils.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libfeature_compatibility_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libcore.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/logger/libparse_log_component_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_api_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_routing_table.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libkey_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librange_arithmetic.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/concurrency/liblock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libticketholder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/write_ops/libbatch_write_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ops/libwrite_ops_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_liaison.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_id_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkill_sessions.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclientdriver_minimal.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclient_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libauthentication.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsecurity_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsaslauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth_impl_internal.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_asio.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/asio-master/libasio.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libbackground_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libcounters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libwire_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/liblegacy_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/liblegacy_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcommon_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libconnection_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libdns_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libobject_check.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbmessage.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libaudit.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libtest_commands_enabled.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libinternal_user_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/liblite_parsed_document_source.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdocument_validation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser_document_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/librole_graph_update.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate_driver.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libupdate_index_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_planner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libindex_bounds.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/matcher/libexpressions.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_knobs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libexpression.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsummation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libexpression_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_factory_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaggregation_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libexplain_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libcommand_request_response.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libread_concern_args.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libuuid_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdatabase_holder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdatabase.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcollection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libnamespace_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdependencies.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_value.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libintrusive_counter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/datetime/libdate_time_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_timelib.a -Wl,--no-whole-archive build/opt/third_party/timelib-2018.01alpha1/libtimelib.a -Wl,--whole-archive build/opt/mongo/db/pipeline/libfield_path.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/matcher/libpath.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/fts/libfts_query_noop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libexpression_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmongohasher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/geo/libgeoparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/geo/libgeometry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/libs2.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/util/math/libmath.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/util/coding/libcoding.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/strings/libstrings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/base/libbase_s2.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/bson/libdotted_path_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsasl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/options_parser/liboptions_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_yaml.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/librole_graph.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthorization_manager_global.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libsasl_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libmd5.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libicu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libicu_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_i18n.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libremote_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libmetadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libclient_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libis_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboptime.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time_validator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsigned_logical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_client_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libsharding_catalog_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_clock.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libglobal_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_document.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libtime_proof_service.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthprivilege.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libindex_names.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libaddress_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthentication_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/bson/mutable/libmutable_bson.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsafe_num.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libaudit_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser_name.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth_rolename.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libread_preference.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libnetwork.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libwinutil.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libfail_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libclock_sources.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libspin_lock.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libwrite_unit_of_work.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/idl/libidl_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommand_generic_argument.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha_block_openssl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha1_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha256_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsecure_compare_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/bson/util/libbson_extract.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/base/libsecure_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsecure_zero_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprocessinfo.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libbase.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/murmurhash3/libmurmurhash3.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_pcrecpp.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a -Wl,--whole-archive build/opt/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libquick_exit.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_allocator.a -Wl,--no-whole-archive build/opt/mongo/util/libdebugger.a -Wl,--end-group -lz -lsnappy -lyaml-cpp -lpcre -lpcrecpp -lboost_program_options -lboost_filesystem -lboost_system -lboost_iostreams -lm -lresolv -lcrypto -lssl -lcrypto -ldl -lrt -ldl /home/naourr/work/instance-2/output-1/host/bin/arm-linux-g++ @/tmp/tmpX8jZZV.lnk /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(memory.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__pthread_key_create@@GLIBC_2.4' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(node_data.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(parse.cpp.o): relocation R_ARM_MOVW_ABS_NC against `_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE@@GLIBCXX_3.4.21' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(parser.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanner.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scantoken.cpp.o): relocation R_ARM_MOVW_ABS_NC against `_ZGVZN4YAML3Exp5ChompEvE1e' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(simplekey.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__dso_handle' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(singledocparser.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(stream.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(tag.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(directives.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(nodebuilder.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__pthread_key_create@@GLIBC_2.4' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(null.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(regex_yaml.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanscalar.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__dso_handle' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scantag.cpp.o): relocation R_ARM_MOVW_ABS_NC against `_ZGVZN4YAML3Exp3URIEvE1e' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(exp.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanner.cpp.o)(.text+0x134): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `_ZNSt13runtime_errorD1Ev@@GLIBCXX_3.4' /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status scons: *** [build/opt/mongo/mongos] Error 1 /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(memory.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__pthread_key_create@@GLIBC_2.4' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(node_data.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(parse.cpp.o): relocation R_ARM_MOVW_ABS_NC against `_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE@@GLIBCXX_3.4.21' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(parser.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanner.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scantoken.cpp.o): relocation R_ARM_MOVW_ABS_NC against `_ZGVZN4YAML3Exp5ChompEvE1e' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(simplekey.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__dso_handle' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(singledocparser.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(stream.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(tag.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(directives.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(nodebuilder.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__pthread_key_create@@GLIBC_2.4' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(null.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(regex_yaml.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanscalar.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__dso_handle' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scantag.cpp.o): relocation R_ARM_MOVW_ABS_NC against `_ZGVZN4YAML3Exp3URIEvE1e' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(exp.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/naourr/work/instance-2/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanner.cpp.o)(.text+0x134): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `_ZNSt13runtime_errorD1Ev@@GLIBCXX_3.4' /home/naourr/work/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status scons: *** [build/opt/mongo/mongod] Error 1 scons: building terminated because of errors. build/opt/mongo/mongos failed: Error 1 build/opt/mongo/mongod failed: Error 1 make: *** [package/pkg-generic.mk:269: /home/naourr/work/instance-2/output-1/build/mongodb-r4.0.12/.stamp_built] Error 2 make: Leaving directory '/home/naourr/work/instance-2/buildroot'